1
0
forked from aniani/vim

patch 9.0.1521: failing redo of command with control characters

Problem:    Failing redo of command with control characters.
Solution:   Use AppendToRedobuffLit() for colon commands. (closes #12354)
This commit is contained in:
zeertzjq
2023-05-07 17:39:23 +01:00
committed by Bram Moolenaar
parent 048d9d2521
commit 30b6d6104c
4 changed files with 34 additions and 5 deletions

View File

@@ -3701,7 +3701,10 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank)
ResetRedobuff();
else
{
AppendToRedobuffSpec(repeat_cmdline);
if (cap->cmdchar == ':')
AppendToRedobuffLit(repeat_cmdline, -1);
else
AppendToRedobuffSpec(repeat_cmdline);
AppendToRedobuff(NL_STR);
VIM_CLEAR(repeat_cmdline);
}