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.
7d41410a45
This commit is contained in:
Jan Edmund Lazo 2021-02-23 20:25:11 -05:00
parent 9b5e3ba32d
commit ceed85ea43
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -7574,6 +7574,12 @@ 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) {
// 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;
}
if (VIsual_active) {