From 95d2e7634ccd8e0da78086002509a856999e180c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 19 Mar 2022 11:42:16 +0000 Subject: [PATCH] patch 8.2.4593: unnecessary call to redraw_later() Problem: Unnecessary call to redraw_later(). Solution: Remove the call to redraw_later() in op_yank(). (closes #9971) --- src/register.c | 3 +-- src/version.c | 2 ++ 2 files changed, 3 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 diff --git a/src/version.c b/src/version.c index c2e491429c..442db2ca76 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4593, /**/ 4592, /**/