forked from aniani/vim
patch 8.2.2548: May get stuck in the cmdline window using :normal
Problem: May get stuck in the cmdline window using :normal. Solution: Have nv_esc() return K_IGNORE.
This commit is contained in:
10
src/normal.c
10
src/normal.c
@@ -6944,6 +6944,16 @@ nv_esc(cmdarg_T *cap)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef FEAT_CMDWIN
|
||||
else if (cmdwin_type != 0 && ex_normal_busy)
|
||||
{
|
||||
// When :normal runs out of characters while in the command line window
|
||||
// vgetorpeek() will return ESC. Exit the cmdline window to break the
|
||||
// loop.
|
||||
cmdwin_result = K_IGNORE;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (VIsual_active)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user