0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1876

Problem:    Typing "k" at the hit-enter prompt has no effect.
Solution:   Don't assume recursive use of the prompt if a character was typed.
            (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-06-02 18:37:05 +02:00
parent 8e759ba865
commit a0055ad3a7
2 changed files with 5 additions and 3 deletions

View File

@@ -2475,9 +2475,9 @@ do_more_prompt(int typed_char)
int i; int i;
/* We get called recursively when a timer callback outputs a message. In /* We get called recursively when a timer callback outputs a message. In
* that case don't show another prompt. Also when at the hit-Enter prompt. * that case don't show another prompt. Also when at the hit-Enter prompt
*/ * and nothing was typed. */
if (entered || State == HITRETURN) if (entered || (State == HITRETURN && typed_char == 0))
return FALSE; return FALSE;
entered = TRUE; entered = TRUE;

View File

@@ -753,6 +753,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 */
/**/
1876,
/**/ /**/
1875, 1875,
/**/ /**/