diff src/normal.c @ 21405:5324acb43fea v8.2.1253

patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted Commit: https://github.com/vim/vim/commit/b146e01a7e41bf5787a2b5ccc6c340ed6001f308 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 23:06:05 2020 +0200 patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted Problem: CTRL-K in Insert mode gets <CursorHold> inserted. (Roland Puntaier) Solution: Do not reset did_cursorhold, restore it. (closes #6447)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 23:15:04 +0200
parents e6a5a5ef4034
children b530a433fe7d
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -499,6 +499,7 @@ normal_cmd(
 #ifdef FEAT_EVAL
     int		set_prevcount = FALSE;
 #endif
+    int		save_did_cursorhold = did_cursorhold;
 
     CLEAR_FIELD(ca);	// also resets ca.retval
     ca.oap = oap;
@@ -1025,7 +1026,7 @@ getcount:
 	out_flush();
 #endif
     if (ca.cmdchar != K_IGNORE)
-	did_cursorhold = FALSE;
+	did_cursorhold = save_did_cursorhold;
 
     State = NORMAL;