diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:31:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:31:18 +0200 |
commit | cc613031b96f1cfa5a184253e745c26f1def9be4 (patch) | |
tree | fe85bf19e82ccfdc37c8c1f6d2ac802ede95efa3 /src/normal.c | |
parent | acc224064033e5cea21ef7f1eefb356ca06ff11d (diff) | |
download | vim-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.c | 5 |
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; |