Skip to content

Commit 08815a1

Browse files
committed
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.
1 parent b31be3f commit 08815a1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/normal.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,12 @@ normal_cmd(
10261026
out_flush();
10271027
#endif
10281028
if (ca.cmdchar != K_IGNORE)
1029-
did_cursorhold = save_did_cursorhold;
1029+
{
1030+
if (ex_normal_busy)
1031+
did_cursorhold = save_did_cursorhold;
1032+
else
1033+
did_cursorhold = FALSE;
1034+
}
10301035

10311036
State = NORMAL;
10321037

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1258,
757759
/**/
758760
1257,
759761
/**/

0 commit comments

Comments
 (0)