aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-18 19:45:40 +0100
committerGitHub <noreply@github.com>2020-11-18 19:45:40 +0100
commit569e5c86bfd7e7729229030fc2045c624e5f33c4 (patch)
treeade072bafae35d14e7c1223bbdeebcec5057c46d /src/nvim/getchar.c
parent790fd58714a98e7910a4a0a56f85fb568f35d52c (diff)
parent147917369ed8d372feaa9181acd249277636da26 (diff)
downloadrneovim-569e5c86bfd7e7729229030fc2045c624e5f33c4.tar.gz
rneovim-569e5c86bfd7e7729229030fc2045c624e5f33c4.tar.bz2
rneovim-569e5c86bfd7e7729229030fc2045c624e5f33c4.zip
Merge pull request #13316 from bfredl/vim-8.2.2005
vim-patch:8.2.2005: redoing a mapping with <Cmd> doesn't work properly
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index a5c81b2795..2e2993ed26 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -4476,9 +4476,7 @@ char_u * getcmdkeycmd(int promptc, void *cookie, int indent, bool do_concat)
aborted = true;
} 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 {
EMSG2(e_cmdmap_key, get_special_key_name(c1, cmod));
aborted = true;