0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-07-20 23:10:56 +02:00
parent b31be3f909
commit 08815a1d03
2 changed files with 8 additions and 1 deletions

View File

@@ -1026,7 +1026,12 @@ getcount:
out_flush(); out_flush();
#endif #endif
if (ca.cmdchar != K_IGNORE) 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; State = NORMAL;

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1258,
/**/ /**/
1257, 1257,
/**/ /**/