commit 536dc391f64685afd452df0e4362396a7039e655
parent f2e5f509d995b291e4b9e05a0c059e83490a18e1
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 19 Mar 2022 20:18:45 +0800
vim-patch:8.2.4593: unnecessary call to redraw_later() (#17775)
Problem: Unnecessary call to redraw_later().
Solution: Remove the call to redraw_later() in op_yank(). (closes vim/vim#9971)
https://github.com/vim/vim/commit/95d2e7634ccd8e0da78086002509a856999e180c
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
@@ -2835,9 +2835,7 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append)
curr->y_size = j;
xfree(reg->y_array);
}
- if (curwin->w_p_rnu) {
- redraw_later(curwin, SOME_VALID); // cursor moved to start
- }
+
if (message) { // Display message about yank?
if (yank_type == kMTCharWise && yanklines == 1) {
yanklines = 0;