1
0
forked from aniani/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 #4270)
This commit is contained in:
Bram Moolenaar
2019-04-20 15:10:13 +02:00
parent d2e716e6df
commit abc7c7fc5a
4 changed files with 37 additions and 2 deletions

View File

@@ -4564,7 +4564,7 @@ ins_esc(
*/
if (reg_recording != 0 || restart_edit != NUL)
showmode();
else if (p_smd && !skip_showmode())
else if (p_smd && (got_int || !skip_showmode()))
msg("");
return TRUE; /* exit Insert mode */