patch 8.2.2189: cannot repeat a command that uses the small delete register
Problem: Cannot repeat a command that uses the small delete register.
Solution: Store the register name instead of the contents. (Christian
Brabandt, closes #7527)
diff --git a/src/register.c b/src/register.c
index 6574432..56b6cad 100644
--- a/src/register.c
+++ b/src/register.c
@@ -809,7 +809,14 @@
{
for (i = 0; i < y_current->y_size; ++i)
{
- stuffescaped(y_current->y_array[i], literally);
+ if (regname == '-')
+ {
+ AppendCharToRedobuff(Ctrl_R);
+ AppendCharToRedobuff(regname);
+ do_put(regname, NULL, BACKWARD, 1L, PUT_CURSEND);
+ }
+ else
+ stuffescaped(y_current->y_array[i], literally);
// Insert a newline between lines and after last line if
// y_type is MLINE.
if (y_current->y_type == MLINE || i < y_current->y_size - 1)