Skip to content

Commit a418b36

Browse files
committed
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)
1 parent 2fcbe32 commit a418b36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12966,7 +12966,7 @@ get_user_input(argvars, rettv, inputdialog)
1296612966
rettv->vval.v_string =
1296712967
getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
1296812968
xp_type, xp_arg);
12969-
if (rettv->vval.v_string == NULL
12969+
if (inputdialog && rettv->vval.v_string == NULL
1297012970
&& argvars[1].v_type != VAR_UNKNOWN
1297112971
&& argvars[2].v_type != VAR_UNKNOWN)
1297212972
rettv->vval.v_string = vim_strsave(get_tv_string_buf(

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
624,
717719
/**/
718720
623,
719721
/**/

0 commit comments

Comments
 (0)