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:
zeertzjq
2022-06-26 14:50:57 +08:00
parent b47f313151
commit 53b0688ac0
4 changed files with 74 additions and 2 deletions

View File

@@ -4251,7 +4251,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