From 5a9357d0bff9059f547906d8d03b31bca7215af1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 3 Oct 2021 16:22:05 +0100 Subject: patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U" Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono) Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI. (closes #8937) --- src/edit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/edit.c') 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 -- cgit v1.2.3