summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-18 11:34:37 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-18 11:34:37 +0100
commitc77534c303721df4024fd6cfd51098d593b7d4da (patch)
tree42f3ba50ed17171562c2e7478c90c6b7eddcdd30 /src/getchar.c
parentb3a01946b30f33e7be0358b3ff2736b94973a659 (diff)
patch 8.2.2005: redoing a mapping with <Cmd> doesn't work properlyv8.2.2005
Problem: Redoing a mapping with <Cmd> doesn't work properly. Solution: Fill the redo buffer. Use "<SNR>" instead of a key code. (closes #7282)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 165a6a3ad7..ad21cba7f2 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -3691,11 +3691,7 @@ getcmdkeycmd(
else if (IS_SPECIAL(c1))
{
if (c1 == K_SNR)
- {
- ga_append(&line_ga, (char)K_SPECIAL);
- ga_append(&line_ga, (char)KS_EXTRA);
- ga_append(&line_ga, (char)KE_SNR);
- }
+ ga_concat(&line_ga, (char_u *)"<SNR>");
else
{
semsg(e_cmd_maping_must_not_include_str_key,