Karsten Hopp f47136
To: vim-dev@vim.org
Karsten Hopp f47136
Subject: patch 7.0.227
Karsten Hopp f47136
Fcc: outbox
Karsten Hopp f47136
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f47136
Mime-Version: 1.0
Karsten Hopp f47136
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp f47136
Content-Transfer-Encoding: 8bit
Karsten Hopp f47136
------------
Karsten Hopp f47136
Karsten Hopp f47136
Patch 7.0.227
Karsten Hopp f47136
Problem:    Crash when closing a window in the GUI. (Charles Campbell)
Karsten Hopp f47136
Solution:   Don't call out_flush() from win_free().
Karsten Hopp f47136
Files:	    src/window.c
Karsten Hopp f47136
Karsten Hopp f47136
Karsten Hopp f47136
*** ../vim-7.0.226/src/window.c	Sun Mar 11 15:53:27 2007
Karsten Hopp f47136
--- src/window.c	Wed Apr 18 22:31:52 2007
Karsten Hopp f47136
***************
Karsten Hopp f47136
*** 2084,2089 ****
Karsten Hopp f47136
--- 2084,2096 ----
Karsten Hopp f47136
      }
Karsten Hopp f47136
  #endif
Karsten Hopp f47136
  
Karsten Hopp f47136
+ #ifdef FEAT_GUI
Karsten Hopp f47136
+     /* Avoid trouble with scrollbars that are going to be deleted in
Karsten Hopp f47136
+      * win_free(). */
Karsten Hopp f47136
+     if (gui.in_use)
Karsten Hopp f47136
+ 	out_flush();
Karsten Hopp f47136
+ #endif
Karsten Hopp f47136
+ 
Karsten Hopp f47136
      /*
Karsten Hopp f47136
       * Close the link to the buffer.
Karsten Hopp f47136
       */
Karsten Hopp f47136
***************
Karsten Hopp f47136
*** 4174,4180 ****
Karsten Hopp f47136
  #ifdef FEAT_GUI
Karsten Hopp f47136
      if (gui.in_use)
Karsten Hopp f47136
      {
Karsten Hopp f47136
- 	out_flush();
Karsten Hopp f47136
  	gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_LEFT]);
Karsten Hopp f47136
  	gui_mch_destroy_scrollbar(&wp->w_scrollbars[SBAR_RIGHT]);
Karsten Hopp f47136
      }
Karsten Hopp f47136
--- 4181,4186 ----
Karsten Hopp f47136
*** ../vim-7.0.226/src/version.c	Thu Apr 26 11:01:16 2007
Karsten Hopp f47136
--- src/version.c	Thu Apr 26 16:09:30 2007
Karsten Hopp f47136
***************
Karsten Hopp f47136
*** 668,669 ****
Karsten Hopp f47136
--- 668,671 ----
Karsten Hopp f47136
  {   /* Add new patch number below this line */
Karsten Hopp f47136
+ /**/
Karsten Hopp f47136
+     227,
Karsten Hopp f47136
  /**/
Karsten Hopp f47136
Karsten Hopp f47136
-- 
Karsten Hopp f47136
hundred-and-one symptoms of being an internet addict:
Karsten Hopp f47136
16. You step out of your room and realize that your parents have moved and
Karsten Hopp f47136
    you don't have a clue when it happened.
Karsten Hopp f47136
Karsten Hopp f47136
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f47136
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f47136
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp f47136
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///