]> granicus.if.org Git - vim/commitdiff
patch 8.2.0389: delayed redraw when shifting text from Insert mode v8.2.0389
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Mar 2020 18:17:50 +0000 (19:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Mar 2020 18:17:50 +0000 (19:17 +0100)
Problem:    Delayed redraw when shifting text from Insert mode.
Solution:   Use msg_attr_keep() instead of msg(). (closes #5782)

src/ops.c
src/version.c

index d4b842c6014463d5bbf951d5f50ba324aa99b5c5..08209c7c6f988e08e5afd2a71b6c4a3cc84503bd 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -203,7 +203,7 @@ op_shift(oparg_T *oap, int curs_top, int amount)
        vim_snprintf((char *)IObuff, IOSIZE,
                NGETTEXT(msg_line_single, msg_line_plural, oap->line_count),
                oap->line_count, op, amount);
-       msg((char *)IObuff);
+       msg_attr_keep((char *)IObuff, 0, TRUE);
     }
 
     if (!cmdmod.lockmarks)
index 3724b9b86de7bb7f2ad6aca83aad4d487be13d49..fede5ead8df27dc08bf0cfe8317ffe2039a321cf 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    389,
 /**/
     388,
 /**/