mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
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:
@@ -2835,9 +2835,7 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append)
|
|||||||
curr->y_size = j;
|
curr->y_size = j;
|
||||||
xfree(reg->y_array);
|
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 (message) { // Display message about yank?
|
||||||
if (yank_type == kMTCharWise && yanklines == 1) {
|
if (yank_type == kMTCharWise && yanklines == 1) {
|
||||||
yanklines = 0;
|
yanklines = 0;
|
||||||
|
Reference in New Issue
Block a user