Problem: When a script defines a function the flag to wait for the user to
hit enter is reset.
Solution: Restore the flag. (Yasuhiro Matsumoto) Except when the user was
typing the function.
int j;
int c;
int saved_did_emsg;
+ int saved_wait_return = need_wait_return;
char_u *name = NULL;
char_u *p;
char_u *arg;
for (;;)
{
if (KeyTyped)
+ {
msg_scroll = TRUE;
+ saved_wait_return = FALSE;
+ }
need_wait_return = FALSE;
sourcing_lnum_off = sourcing_lnum;
vim_free(fudi.fd_newkey);
vim_free(name);
did_emsg |= saved_did_emsg;
+ need_wait_return |= saved_wait_return;
}
/*
}
#endif
-
/*
* Return TRUE if the string "p" contains a wildcard that mch_expandpath() can
* expand.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1309,
/**/
1308,
/**/