diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-11-18 14:49:25 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-11-18 15:09:17 +0100 |
commit | 147917369ed8d372feaa9181acd249277636da26 (patch) | |
tree | fc01544bd3123e7aa2f253b28f3e23a398f7c667 /src/nvim/getchar.c | |
parent | 8c4648421a1e34c3e95e42ea596de36987f02563 (diff) | |
download | rneovim-147917369ed8d372feaa9181acd249277636da26.tar.gz rneovim-147917369ed8d372feaa9181acd249277636da26.tar.bz2 rneovim-147917369ed8d372feaa9181acd249277636da26.zip |
vim-patch:8.2.2005: redoing a mapping with <Cmd> doesn't work properly
Problem: Redoing a mapping with <Cmd> doesn't work properly.
Solution: Fill the redo buffer. Use "<SNR>" instead of a key code.
(closes vim/vim#7282)
https://github.com/vim/vim/commit/c77534c303721df4024fd6cfd51098d593b7d4da
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
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; |