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:
Bram Moolenaar
2021-02-23 19:39:20 +01:00
parent 2c6553498e
commit 7d41410a45
2 changed files with 12 additions and 0 deletions

View File

@ -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)
{

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2548,
/**/
2547,
/**/