]> granicus.if.org Git - vim/commitdiff
patch 8.1.0442: GUI: cursor not drawn after ":redraw | sleep" v8.1.0442
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Sep 2018 16:22:26 +0000 (18:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Sep 2018 16:22:26 +0000 (18:22 +0200)
Problem:    GUI: Cursor not drawn after ":redraw | sleep".
Solution:   Flush the output. (closes #3496)

src/ex_docmd.c
src/version.c

index 82904eeaf0e48f2b365f16a1910a90e76cf09a3b..25d70c4f825267cdcd070c490eb55113bf87f955 100644 (file)
@@ -9272,7 +9272,7 @@ do_sleep(long msec)
     long       wait_now;
 
     cursor_on();
-    out_flush();
+    out_flush_cursor(FALSE, FALSE);
     for (done = 0; !got_int && done < msec; done += wait_now)
     {
        wait_now = msec - done > 1000L ? 1000L : msec - done;
index c81491d2c91cb5d777c7af7d5038311ca3eba7a5..f3a72ec778a67d22c037c8920734978313e88357 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    442,
 /**/
     441,
 /**/