diff src/edit.c @ 16368:a3b5cbd2effe v8.1.1189

patch 8.1.1189: mode is not cleared when leaving Insert mode commit https://github.com/vim/vim/commit/abc7c7fc5a098374f5543a237e6c9dd918848b34 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 20 15:10:13 2019 +0200 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 https://github.com/vim/vim/issues/4270)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Apr 2019 15:15:05 +0200
parents cd5c83115ec6
children 3d6b282e2d6e
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -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 */