From 147917369ed8d372feaa9181acd249277636da26 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 18 Nov 2020 14:49:25 +0100 Subject: vim-patch:8.2.2005: redoing a mapping with doesn't work properly Problem: Redoing a mapping with doesn't work properly. Solution: Fill the redo buffer. Use "" instead of a key code. (closes vim/vim#7282) https://github.com/vim/vim/commit/c77534c303721df4024fd6cfd51098d593b7d4da --- src/nvim/getchar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/getchar.c') 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 *)""); } else { EMSG2(e_cmdmap_key, get_special_key_name(c1, cmod)); aborted = true; -- cgit