changeset 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 4650e4659957
children 0adf0004085a
files src/normal.c src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
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;
 
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1258,
+/**/
     1257,
 /**/
     1256,