forked from aniani/vim
updated for version 7.3.624
Problem: When cancelling input() it returns the third argument. That should only happen for inputdialog(). Solution: Check if inputdialog() was used. (Hirohito Higashi)
This commit is contained in:
@@ -12966,7 +12966,7 @@ get_user_input(argvars, rettv, inputdialog)
|
|||||||
rettv->vval.v_string =
|
rettv->vval.v_string =
|
||||||
getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
|
getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
|
||||||
xp_type, xp_arg);
|
xp_type, xp_arg);
|
||||||
if (rettv->vval.v_string == NULL
|
if (inputdialog && rettv->vval.v_string == NULL
|
||||||
&& argvars[1].v_type != VAR_UNKNOWN
|
&& argvars[1].v_type != VAR_UNKNOWN
|
||||||
&& argvars[2].v_type != VAR_UNKNOWN)
|
&& argvars[2].v_type != VAR_UNKNOWN)
|
||||||
rettv->vval.v_string = vim_strsave(get_tv_string_buf(
|
rettv->vval.v_string = vim_strsave(get_tv_string_buf(
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
624,
|
||||||
/**/
|
/**/
|
||||||
623,
|
623,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user