Skip to content

Commit b62988d

Browse files
committed
updated for version 7.4.047
Problem: When using input() in a function invoked by a mapping it doesn't work. Solution: Temporarily reset ex_normal_busy. (Yasuhiro Matsumoto)
1 parent e641c8f commit b62988d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/eval.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13054,9 +13054,18 @@ get_user_input(argvars, rettv, inputdialog)
1305413054
}
1305513055

1305613056
if (defstr != NULL)
13057+
{
13058+
# ifdef FEAT_EX_EXTRA
13059+
int save_ex_normal_busy = ex_normal_busy;
13060+
ex_normal_busy = 0;
13061+
# endif
1305713062
rettv->vval.v_string =
1305813063
getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
1305913064
xp_type, xp_arg);
13065+
# ifdef FEAT_EX_EXTRA
13066+
ex_normal_busy = save_ex_normal_busy;
13067+
# endif
13068+
}
1306013069
if (inputdialog && rettv->vval.v_string == NULL
1306113070
&& argvars[1].v_type != VAR_UNKNOWN
1306213071
&& argvars[2].v_type != VAR_UNKNOWN)

src/version.c

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

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
47,
741743
/**/
742744
46,
743745
/**/

0 commit comments

Comments
 (0)