commit | d6a4ea3aa0d3f4a886ea900e94bf4e8ca8ae8d63 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 25 14:24:44 2023 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 25 14:24:44 2023 +0000 |
tree | 08280d9941371f9a9138a61082cb65361931ef04 | |
parent | 6d611de58c8e324491415da8e79c6bd3faa3e848 [diff] [blame] |
patch 9.0.1354: "gr CTRL-G" stays in virtual replace mode Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty) Solution: Prepend CTRL-V before control characters. (closes #12045)
diff --git a/src/edit.c b/src/edit.c index a030e53..ff9fc0e 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -3527,6 +3527,10 @@ dont_sync_undo = MAYBE; break; + case ESC: + // Esc after CTRL-G cancels it. + break; + // Unknown CTRL-G command, reserved for future expansion. default: vim_beep(BO_CTRLG); }