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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user