commit | 08815a1d0350fbcc007aea5dd1272454c03fab4f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jul 20 23:10:56 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jul 20 23:10:56 2020 +0200 |
tree | dad1065491e1a6af82e39fd44c7ce02b9082e96c | |
parent | b31be3f909e074214b7f346888209c866faed56f [diff] [blame] |
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;