0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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

@@ -3056,7 +3056,10 @@ vgetorpeek(int advance)
++vgetc_busy;
if (advance)
{
KeyStuffed = FALSE;
typebuf_was_empty = FALSE;
}
init_typebuf();
start_stuff();
@@ -3361,6 +3364,10 @@ vgetorpeek(int advance)
#ifdef FEAT_CMDWIN
tc = c;
#endif
// set a flag to indicate this wasn't a normal char
if (advance)
typebuf_was_empty = TRUE;
// return from main_loop()
if (pending_exmode_active)
exmode_active = EXMODE_NORMAL;