To: vim_dev@googlegroups.com Subject: Patch 8.2.1253 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1253 Problem: CTRL-K in Insert mode gets inserted. (Roland Puntaier) Solution: Do not reset did_cursorhold, restore it. (closes #6447) Files: src/normal.c *** ../vim-8.2.1252/src/normal.c 2020-06-07 21:31:14.778405833 +0200 --- src/normal.c 2020-07-19 22:50:40.368776313 +0200 *************** *** 499,504 **** --- 499,505 ---- #ifdef FEAT_EVAL int set_prevcount = FALSE; #endif + int save_did_cursorhold = did_cursorhold; CLEAR_FIELD(ca); // also resets ca.retval ca.oap = oap; *************** *** 1025,1031 **** out_flush(); #endif if (ca.cmdchar != K_IGNORE) ! did_cursorhold = FALSE; State = NORMAL; --- 1026,1032 ---- out_flush(); #endif if (ca.cmdchar != K_IGNORE) ! did_cursorhold = save_did_cursorhold; State = NORMAL; *** ../vim-8.2.1252/src/version.c 2020-07-19 22:09:02.659572855 +0200 --- src/version.c 2020-07-19 23:05:48.494264502 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1253, /**/ -- hundred-and-one symptoms of being an internet addict: 40. You tell the cab driver you live at http://123.elm.street/house/bluetrim.html 41. You actually try that 123.elm.street address. /// 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 ///