1
0
forked from aniani/vim

patch 9.0.0234: cannot make difference between :normal end and argument char

Problem:    Cannot make difference between the end of :normal and a character
            in its argument.
Solution:   Add the "typebuf_was_empty" flag. (closes #10950)
This commit is contained in:
Bram Moolenaar
2022-08-21 10:40:07 +01:00
parent a7704226a2
commit 8d69637133
4 changed files with 16 additions and 3 deletions

View File

@@ -6808,11 +6808,11 @@ nv_esc(cmdarg_T *cap)
#endif
}
#ifdef FEAT_CMDWIN
else if (cmdwin_type != 0 && ex_normal_busy)
else if (cmdwin_type != 0 && ex_normal_busy && typebuf_was_empty)
{
// When :normal runs out of characters while in the command line window
// vgetorpeek() will return ESC. Exit the cmdline window to break the
// loop.
// vgetorpeek() will repeatedly return ESC. Exit the cmdline window to
// break the loop.
cmdwin_result = K_IGNORE;
return;
}