mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -5033,6 +5033,10 @@ nv_vreplace(cmdarg_T *cap)
|
||||
{
|
||||
if (cap->extra_char == Ctrl_V) // get another character
|
||||
cap->extra_char = get_literal(FALSE);
|
||||
if (cap->extra_char < ' ')
|
||||
// Prefix a control character with CTRL-V to avoid it being used as
|
||||
// a command.
|
||||
stuffcharReadbuff(Ctrl_V);
|
||||
stuffcharReadbuff(cap->extra_char);
|
||||
stuffcharReadbuff(ESC);
|
||||
if (virtual_active())
|
||||
|
Reference in New Issue
Block a user