summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-03 16:22:05 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-03 16:22:05 +0100
commit5a9357d0bff9059f547906d8d03b31bca7215af1 (patch)
treee6ff1a6a5ed5adf5181d11967c566cd4e9dc2fd5 /src/edit.c
parentcc8cd4453332276d55b4a1109eace5785a4f319d (diff)
patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U"v8.2.3467
Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono) Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI. (closes #8937)
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 070d84c609..4f8e374017 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