summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-07 21:31:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-07 21:31:18 +0200
commitcc613031b96f1cfa5a184253e745c26f1def9be4 (patch)
treefe85bf19e82ccfdc37c8c1f6d2ac802ede95efa3 /src/normal.c
parentacc224064033e5cea21ef7f1eefb356ca06ff11d (diff)
downloadvim-git-cc613031b96f1cfa5a184253e745c26f1def9be4.tar.gz
patch 8.2.0929: v:register is not cleared after an operator was executedv8.2.0929
Problem: v:register is not cleared after an operator was executed. Solution: Clear v:register after finishing an operator (Andy Massimino, closes #5305)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index e3523546b..ae2c1f5e3 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1181,6 +1181,11 @@ normal_end:
msg_nowait = FALSE;
+#ifdef FEAT_EVAL
+ if (finish_op)
+ reset_reg_var();
+#endif
+
// Reset finish_op, in case it was set
#ifdef CURSOR_SHAPE
c = finish_op;