summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 070d84c60..4f8e37401 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1057,6 +1057,9 @@ doESCkey:
case K_CURSORHOLD: // Didn't type something for a while.
ins_apply_autocmds(EVENT_CURSORHOLDI);
did_cursorhold = TRUE;
+ // If CTRL-G U was used apply it to the next typed key.
+ if (dont_sync_undo == TRUE)
+ dont_sync_undo = MAYBE;
break;
#ifdef FEAT_GUI_MSWIN