diff src/normal.c @ 21415:b530a433fe7d v8.2.1258

patch 8.2.1258: CursorHold does not work well Commit: https://github.com/vim/vim/commit/08815a1d0350fbcc007aea5dd1272454c03fab4f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 20 23:10:56 2020 +0200 patch 8.2.1258: CursorHold does not work well Problem: CursorHold does not work well.a (Shane-XB-Qian) Solution: Only restore did_cursorhold when using :normal.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jul 2020 23:15:05 +0200
parents 5324acb43fea
children 22583b9d4efd
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -1026,7 +1026,12 @@ getcount:
 	out_flush();
 #endif
     if (ca.cmdchar != K_IGNORE)
-	did_cursorhold = save_did_cursorhold;
+    {
+	if (ex_normal_busy)
+	    did_cursorhold = save_did_cursorhold;
+	else
+	    did_cursorhold = FALSE;
+    }
 
     State = NORMAL;