]> granicus.if.org Git - vim/commitdiff
patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted v8.2.1253
authorBram Moolenaar <Bram@vim.org>
Sun, 19 Jul 2020 21:06:05 +0000 (23:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 Jul 2020 21:06:05 +0000 (23:06 +0200)
Problem:    CTRL-K in Insert mode gets <CursorHold> inserted. (Roland
            Puntaier)
Solution:   Do not reset did_cursorhold, restore it. (closes #6447)

src/normal.c
src/version.c

index ae2c1f5e324edaaea788917463cc8c338deed764..4a86e7560f04acf6182d808ae474033fd42b4e21 100644 (file)
@@ -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;
 
index 89fd043453e47d1019d13002886ce3ebe6a766f2..daec76500d6cd8d413c1908aa9480edb33b97de2 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1253,
 /**/
     1252,
 /**/