vim-patch:8.1.1189: mode is not cleared when leaving Insert mode

Problem:    Mode is not cleared when leaving Insert mode.
Solution:   Clear the mode when got_int is set. (Ozaki Kiichi, closes vim/vim#4270)
abc7c7fc5a
This commit is contained in:
Jan Edmund Lazo
2019-08-25 04:02:57 -04:00
parent 0519a75f6e
commit 4afddb8f57
3 changed files with 33 additions and 2 deletions

View File

@@ -7803,7 +7803,7 @@ static bool ins_esc(long *count, int cmdchar, bool nomove)
// Otherwise remove the mode message.
if (reg_recording != 0 || restart_edit != NUL) {
showmode();
} else if (p_smd && !skip_showmode()) {
} else if (p_smd && (got_int || !skip_showmode())) {
MSG("");
}
// Exit Insert mode