Skip to content

Commit b146e01

Browse files
committed
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)
1 parent 54c3fcd commit b146e01

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/normal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ normal_cmd(
499499
#ifdef FEAT_EVAL
500500
int set_prevcount = FALSE;
501501
#endif
502+
int save_did_cursorhold = did_cursorhold;
502503

503504
CLEAR_FIELD(ca); // also resets ca.retval
504505
ca.oap = oap;
@@ -1025,7 +1026,7 @@ normal_cmd(
10251026
out_flush();
10261027
#endif
10271028
if (ca.cmdchar != K_IGNORE)
1028-
did_cursorhold = FALSE;
1029+
did_cursorhold = save_did_cursorhold;
10291030

10301031
State = NORMAL;
10311032

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1253,
757759
/**/
758760
1252,
759761
/**/

0 commit comments

Comments
 (0)