Skip to content
Snippets Groups Projects
Commit b146e01a authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted

Problem:    CTRL-K in Insert mode gets <CursorHold> inserted. (Roland
            Puntaier)
Solution:   Do not reset did_cursorhold, restore it. (closes #6447)
parent 54c3fcd8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1253,
/**/
1252,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment