]> granicus.if.org Git - vim/commitdiff
patch 8.2.0202: when 'lazyredraw' is set the window title may not be updated v8.2.0202
authorBram Moolenaar <Bram@vim.org>
Mon, 3 Feb 2020 20:29:30 +0000 (21:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 3 Feb 2020 20:29:30 +0000 (21:29 +0100)
Problem:    When 'lazyredraw' is set the window title may not be updated.
Solution:   Set "do_redraw" before entering the main loop. (Jason Franklin)

src/main.c
src/version.c

index 68a419eaa6c7eb227b90b9430a356ad626191abd..c747aba3d174ad46417f6a7c492f06e83c31b4b6 100644 (file)
@@ -893,6 +893,10 @@ vim_main2(void)
     }
 #endif
 
+    // Redraw at least once, also when 'lazyredraw' is set, to make sure the
+    // window title gets updated.
+    do_redraw = TRUE;
+
     TIME_MSG("before starting main loop");
 
     /*
index 01e54a03345f0a6691c57bb6f15cb33b4a64002e..884e01a5f4cd1a56f25d51198cee01301ad77681 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    202,
 /**/
     201,
 /**/