Mercurial > vim
diff src/window.c @ 1101:5d5a41a95347 v7.0.227
updated for version 7.0-227
author | vimboss |
---|---|
date | Thu, 26 Apr 2007 14:09:42 +0000 |
parents | 9a3b65713280 |
children | b04bb35fcd4b |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -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]); }