From: zeertzjq Date: Sat, 19 Mar 2022 11:42:16 +0000 (+0000) Subject: patch 8.2.4593: unnecessary call to redraw_later() X-Git-Tag: v8.2.4593 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95d2e7634ccd8e0da78086002509a856999e180c;p=vim 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) --- diff --git a/src/register.c b/src/register.c index 9406ff84b..89d4232c8 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 c2e491429..442db2ca7 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, /**/