vim-patch:8.2.1000: get error when leaving Ex mode with :visual

Problem:    Get error when leaving Ex mode with :visual and a CmdLineEnter
            autocommand was used.
Solution:   Reset ex_pressedreturn. (closes vim/vim#6293)
158ea175a9
This commit is contained in:
Jan Edmund Lazo
2021-05-11 21:10:14 -04:00
parent d5b9a7d6e8
commit 7339290900
2 changed files with 27 additions and 0 deletions

View File

@@ -7305,6 +7305,7 @@ do_exedit(
if (exmode_active && (eap->cmdidx == CMD_visual
|| eap->cmdidx == CMD_view)) {
exmode_active = FALSE;
ex_pressedreturn = false;
if (*eap->arg == NUL) {
/* Special case: ":global/pat/visual\NLvi-commands" */
if (global_busy) {