diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-19 20:18:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 20:18:45 +0800 |
commit | 536dc391f64685afd452df0e4362396a7039e655 (patch) | |
tree | 3cdc79241f4c5055cd777b419eed356d55566fdf /src | |
parent | f2e5f509d995b291e4b9e05a0c059e83490a18e1 (diff) | |
download | rneovim-536dc391f64685afd452df0e4362396a7039e655.tar.gz rneovim-536dc391f64685afd452df0e4362396a7039e655.tar.bz2 rneovim-536dc391f64685afd452df0e4362396a7039e655.zip |
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 (limited to 'src')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 244a1881aa..fc66fb5f06 100644 --- 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; |