# HG changeset patch # User Bram Moolenaar # Date 1595279705 -7200 # Node ID b530a433fe7d9518d9a37b9aa8a62fae5cc499c5 # Parent 4650e46599576ed057a225a086e0d08bff34b381 patch 8.2.1258: CursorHold does not work well Commit: https://github.com/vim/vim/commit/08815a1d0350fbcc007aea5dd1272454c03fab4f Author: Bram Moolenaar 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. diff --git a/src/normal.c b/src/normal.c --- 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; diff --git a/src/version.c b/src/version.c --- 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,