summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-23 21:53:52 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-23 21:53:52 +0200
commit833093bfb0e4a7f89b5adc66babcfa8ac09cfda9 (patch)
treea9178cf05bc19ca57c777d92924032a0faefa880 /src/getchar.c
parentd315cf551f1d15609c4d7cf724e471de55f5cdac (diff)
patch 8.1.0022: repeating put from expression register failsv8.1.0022
Problem: Repeating put from expression register fails. Solution: Re-evaluate the expression register. (Andy Massimino, closes #2945)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index ddb23dd5c1..ff03905b44 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -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);
}