summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-28 14:43:26 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-28 14:43:26 +0100
commit4a44120e3dc1d40dd7109658afd5e078360b1d8f (patch)
treea69a1927ac3aae81b2fe785bdce63608b1fafa4f /src/getchar.c
parent4d05af0a64c2e26b13d2ad571debbf5f3b6d384e (diff)
patch 8.2.2062: <Cmd> does not handle CTRL-Vv8.2.2062
Problem: <Cmd> does not handle CTRL-V. Solution: Call get_literal() after encountering CTRL-V. (closes #7387)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index ad21cba7f2..42eed4a9e7 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -3675,6 +3675,14 @@ getcmdkeycmd(
}
c1 = TO_SPECIAL(c1, c2);
}
+ if (c1 == Ctrl_V)
+ {
+ // CTRL-V is followed by octal, hex or other characters, reverses
+ // what AppendToRedobuffLit() does.
+ no_reduce_keys = TRUE; // don't merge modifyOtherKeys
+ c1 = get_literal();
+ no_reduce_keys = FALSE;
+ }
if (got_int)
aborted = TRUE;