vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc

Problem:    Mode is not cleared when leaving Insert mode with mapped Esc.
Solution:   Clear the mode when redraw_cmdline is set. (closes vim/vim#4269)
4c25bd785a
This commit is contained in:
Jan Edmund Lazo
2020-12-13 01:50:58 -05:00
parent 4afddb8f57
commit 44bb7147e4
12 changed files with 121 additions and 35 deletions

View File

@@ -8062,8 +8062,8 @@ static void ex_redraw(exarg_T *eap)
RedrawingDisabled = r;
p_lz = p;
/* Reset msg_didout, so that a message that's there is overwritten. */
msg_didout = FALSE;
// Reset msg_didout, so that a message that's there is overwritten.
msg_didout = false;
msg_col = 0;
/* No need to wait after an intentional redraw. */