changeset 28137:f825792fddb1 v8.2.4593

patch 8.2.4593: unnecessary call to redraw_later() Commit: https://github.com/vim/vim/commit/95d2e7634ccd8e0da78086002509a856999e180c Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Mar 19 11:42:16 2022 +0000 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 https://github.com/vim/vim/issues/9971)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Mar 2022 12:45:04 +0100
parents 0be74bb8a072
children d14809743aa0
files src/register.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/register.c
+++ b/src/register.c
@@ -1330,8 +1330,7 @@ op_yank(oparg_T *oap, int deleting, int 
 	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
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4593,
+/**/
     4592,
 /**/
     4591,