To: vim_dev@googlegroups.com Subject: Patch 8.2.1258 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1258 (after 8.2.1253) Problem: CursorHold does not work well.a (Shane-XB-Qian) Solution: Only restore did_cursorhold when using :normal. Files: src/normal.c *** ../vim-8.2.1257/src/normal.c 2020-07-19 23:06:01.642229127 +0200 --- src/normal.c 2020-07-20 23:04:52.065960363 +0200 *************** *** 1026,1032 **** out_flush(); #endif if (ca.cmdchar != K_IGNORE) ! did_cursorhold = save_did_cursorhold; State = NORMAL; --- 1026,1037 ---- out_flush(); #endif if (ca.cmdchar != K_IGNORE) ! { ! if (ex_normal_busy) ! did_cursorhold = save_did_cursorhold; ! else ! did_cursorhold = FALSE; ! } State = NORMAL; *** ../vim-8.2.1257/src/version.c 2020-07-20 22:37:40.558206353 +0200 --- src/version.c 2020-07-20 23:09:50.069191771 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1258, /**/ -- hundred-and-one symptoms of being an internet addict: 51. You put a pillow case over your laptop so your lover doesn't see it while you are pretending to catch your breath. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///