diff src/normal.c @ 20754:e6a5a5ef4034 v8.2.0929

patch 8.2.0929: v:register is not cleared after an operator was executed Commit: https://github.com/vim/vim/commit/cc613031b96f1cfa5a184253e745c26f1def9be4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 21:31:18 2020 +0200 patch 8.2.0929: v:register is not cleared after an operator was executed Problem: v:register is not cleared after an operator was executed. Solution: Clear v:register after finishing an operator (Andy Massimino, closes #5305)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 21:45:04 +0200
parents 70d561931721
children 5324acb43fea
line wrap: on
line diff
--- 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;