0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0022: repeating put from expression register fails

Problem:    Repeating put from expression register fails.
Solution:   Re-evaluate the expression register. (Andy Massimino,
            closes #2945)
This commit is contained in:
Bram Moolenaar
2018-05-23 21:53:52 +02:00
parent d315cf551f
commit 833093bfb0
3 changed files with 23 additions and 0 deletions

View File

@@ -844,6 +844,14 @@ start_redo(long count, int old_redo)
if (c >= '1' && c < '9')
++c;
add_char_buff(&readbuf2, c);
/* the expression register should be re-evaluated */
if (c == '=')
{
add_char_buff(&readbuf2, CAR);
cmd_silent = TRUE;
}
c = read_redo(FALSE, old_redo);
}