]> granicus.if.org Git - vim/commitdiff
patch 8.2.4593: unnecessary call to redraw_later() v8.2.4593
authorzeertzjq <zeertzjq@outlook.com>
Sat, 19 Mar 2022 11:42:16 +0000 (11:42 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Mar 2022 11:42:16 +0000 (11:42 +0000)
Problem:    Unnecessary call to redraw_later().
Solution:   Remove the call to redraw_later() in op_yank(). (closes #9971)

src/register.c
src/version.c

index 9406ff84b8ffb06fc0b3359fe078e76ec7ddc8b9..89d4232c817826630a5c8e994b4f59f7a03062a6 100644 (file)
@@ -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
index c2e491429c2959056a1c9bca20e497f5662f5728..442db2ca76b84ea24e821b511d3c57d3381e1e8c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4593,
 /**/
     4592,
 /**/