diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-27 18:58:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 18:58:43 +0800 |
commit | 10e57ad4cb99c43544f53f784f8eb368a2008353 (patch) | |
tree | 436eb2684f7d5897d6838b1bc232a0f5779c0516 /src/nvim/edit.c | |
parent | b65f4151d9e52a8521c0682a817c4dab9690e1e7 (diff) | |
download | rneovim-10e57ad4cb99c43544f53f784f8eb368a2008353.tar.gz rneovim-10e57ad4cb99c43544f53f784f8eb368a2008353.tar.bz2 rneovim-10e57ad4cb99c43544f53f784f8eb368a2008353.zip |
vim-patch:8.2.3467: CursorHoldI event interferes with "CTRL-G U" (#25383)
Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono)
Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI.
(closes vim/vim#8937)
https://github.com/vim/vim/commit/5a9357d0bff9059f547906d8d03b31bca7215af1
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 9169cbcd9c..8def1bf35d 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -878,6 +878,10 @@ static int insert_handle_key(InsertState *s) case K_EVENT: // some event state_handle_k_event(); + // If CTRL-G U was used apply it to the next typed key. + if (dont_sync_undo == kTrue) { + dont_sync_undo = kNone; + } goto check_pum; case K_COMMAND: // <Cmd>command<CR> |