comparison src/normal.c @ 21415:b530a433fe7d v8.2.1258

patch 8.2.1258: CursorHold does not work well Commit: https://github.com/vim/vim/commit/08815a1d0350fbcc007aea5dd1272454c03fab4f Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jul 2020 23:15:05 +0200
parents 5324acb43fea
children 22583b9d4efd
comparison
equal deleted inserted replaced
21414:4650e4659957 21415:b530a433fe7d
1024 */ 1024 */
1025 if (need_flushbuf) 1025 if (need_flushbuf)
1026 out_flush(); 1026 out_flush();
1027 #endif 1027 #endif
1028 if (ca.cmdchar != K_IGNORE) 1028 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 }
1030 1035
1031 State = NORMAL; 1036 State = NORMAL;
1032 1037
1033 if (ca.nchar == ESC) 1038 if (ca.nchar == ESC)
1034 { 1039 {