diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-19 11:42:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-19 11:42:16 +0000 |
commit | 95d2e7634ccd8e0da78086002509a856999e180c (patch) | |
tree | 7d3fc17fba3573e046689e547a83bd43c1631636 /src/register.c | |
parent | b10ff5c1b3581ed4990d196bed51b4a8f961e8a2 (diff) |
patch 8.2.4593: unnecessary call to redraw_later()v8.2.4593
Problem: Unnecessary call to redraw_later().
Solution: Remove the call to redraw_later() in op_yank(). (closes #9971)
Diffstat (limited to 'src/register.c')
-rw-r--r-- | src/register.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/register.c b/src/register.c index 9406ff84b8..89d4232c81 100644 --- a/src/register.c +++ b/src/register.c @@ -1330,8 +1330,7 @@ op_yank(oparg_T *oap, int deleting, int mess) vim_free(y_current->y_array); y_current = curr; } - if (curwin->w_p_rnu) - redraw_later(SOME_VALID); // cursor moved to start + if (mess) // Display message about yank? { if (yanktype == MCHAR |