]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-227 v7.0.227
authorBram Moolenaar <Bram@vim.org>
Thu, 26 Apr 2007 14:09:42 +0000 (14:09 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 26 Apr 2007 14:09:42 +0000 (14:09 +0000)
src/version.c
src/window.c

index f19fbbaaff8cfce75f7c8cff54aa334dacfac43a..dc85d40a6df0bdc9ffc9eedbb42421d54ce8b824 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    227,
 /**/
     226,
 /**/
index 40aa2f062bf64bf4eb30a1459ba4cdda45af5c50..28b9660b84faf974d8220345efb279f8d4fb1f69 100644 (file)
@@ -2084,6 +2084,13 @@ win_close(win, free_buf)
     }
 #endif
 
+#ifdef FEAT_GUI
+    /* Avoid trouble with scrollbars that are going to be deleted in
+     * win_free(). */
+    if (gui.in_use)
+       out_flush();
+#endif
+
     /*
      * Close the link to the buffer.
      */
@@ -4174,7 +4181,6 @@ win_free(wp, tp)
 #ifdef FEAT_GUI
     if (gui.in_use)
     {
-       out_flush();
        gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_LEFT]);
        gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_RIGHT]);
     }