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)
95d2e7634c
This commit is contained in:
zeertzjq
2022-03-19 20:18:45 +08:00
committed by GitHub
parent f2e5f509d9
commit 536dc391f6

View File

@@ -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;