comparison src/edit.c @ 25866:45a8b2b2f652 v8.2.3467

patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U" Commit: https://github.com/vim/vim/commit/5a9357d0bff9059f547906d8d03b31bca7215af1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 3 16:22:05 2021 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Oct 2021 17:30:03 +0200
parents 37bc83bbda91
children 46205b125fbd
comparison
equal deleted inserted replaced
25865:cbbd4c48beed 25866:45a8b2b2f652
1055 break; 1055 break;
1056 1056
1057 case K_CURSORHOLD: // Didn't type something for a while. 1057 case K_CURSORHOLD: // Didn't type something for a while.
1058 ins_apply_autocmds(EVENT_CURSORHOLDI); 1058 ins_apply_autocmds(EVENT_CURSORHOLDI);
1059 did_cursorhold = TRUE; 1059 did_cursorhold = TRUE;
1060 // If CTRL-G U was used apply it to the next typed key.
1061 if (dont_sync_undo == TRUE)
1062 dont_sync_undo = MAYBE;
1060 break; 1063 break;
1061 1064
1062 #ifdef FEAT_GUI_MSWIN 1065 #ifdef FEAT_GUI_MSWIN
1063 // On MS-Windows ignore <M-F4>, we get it when closing the window 1066 // On MS-Windows ignore <M-F4>, we get it when closing the window
1064 // was cancelled. 1067 // was cancelled.