mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user