From: Bram Moolenaar Date: Sun, 19 Jul 2020 21:06:05 +0000 (+0200) Subject: patch 8.2.1253: CTRL-K in Insert mode gets inserted X-Git-Tag: v8.2.1253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b146e01a7e41bf5787a2b5ccc6c340ed6001f308;p=vim patch 8.2.1253: CTRL-K in Insert mode gets inserted Problem: CTRL-K in Insert mode gets inserted. (Roland Puntaier) Solution: Do not reset did_cursorhold, restore it. (closes #6447) --- diff --git a/src/normal.c b/src/normal.c index ae2c1f5e3..4a86e7560 100644 --- a/src/normal.c +++ b/src/normal.c @@ -499,6 +499,7 @@ normal_cmd( #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,7 +1026,7 @@ getcount: out_flush(); #endif if (ca.cmdchar != K_IGNORE) - did_cursorhold = FALSE; + did_cursorhold = save_did_cursorhold; State = NORMAL; diff --git a/src/version.c b/src/version.c index 89fd04345..daec76500 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1253, /**/ 1252, /**/