0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2023-02-25 14:24:44 +00:00
parent 6d611de58c
commit d6a4ea3aa0
4 changed files with 16 additions and 2 deletions

View File

@@ -3527,6 +3527,10 @@ ins_ctrl_g(void)
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);
}