mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -499,6 +499,7 @@ normal_cmd(
|
|||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
int set_prevcount = FALSE;
|
int set_prevcount = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
int save_did_cursorhold = did_cursorhold;
|
||||||
|
|
||||||
CLEAR_FIELD(ca); // also resets ca.retval
|
CLEAR_FIELD(ca); // also resets ca.retval
|
||||||
ca.oap = oap;
|
ca.oap = oap;
|
||||||
@@ -1025,7 +1026,7 @@ getcount:
|
|||||||
out_flush();
|
out_flush();
|
||||||
#endif
|
#endif
|
||||||
if (ca.cmdchar != K_IGNORE)
|
if (ca.cmdchar != K_IGNORE)
|
||||||
did_cursorhold = FALSE;
|
did_cursorhold = save_did_cursorhold;
|
||||||
|
|
||||||
State = NORMAL;
|
State = NORMAL;
|
||||||
|
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1253,
|
||||||
/**/
|
/**/
|
||||||
1252,
|
1252,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user