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.
diff --git a/src/normal.c b/src/normal.c
index 4a86e75..dd79a43 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1026,7 +1026,12 @@
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;
diff --git a/src/version.c b/src/version.c
index cc7fbfb..1aacd3b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1258,
+/**/
1257,
/**/
1256,