mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:9.0.0234: cannot make difference between :normal end and argument char (#19879)
Problem: Cannot make difference between the end of :normal and a character
in its argument.
Solution: Add the "typebuf_was_empty" flag. (closes vim/vim#10950)
8d69637133
This commit is contained in:
@@ -6943,10 +6943,10 @@ static void nv_esc(cmdarg_T *cap)
|
||||
got_int = false; // don't stop executing autocommands et al.
|
||||
return;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user