3a08da3
To: vim-dev@vim.org
3a08da3
Subject: Patch 7.0.128
3a08da3
Fcc: outbox
3a08da3
From: Bram Moolenaar <Bram@moolenaar.net>
3a08da3
Mime-Version: 1.0
3a08da3
Content-Type: text/plain; charset=ISO-8859-1
3a08da3
Content-Transfer-Encoding: 8bit
3a08da3
------------
3a08da3
3a08da3
Patch 7.0.128
3a08da3
Problem:    GUI: when closing gvim is cancelled because there is a changed
3a08da3
	    buffer the screen isn't updated to show the changed buffer in the
3a08da3
	    current window.  (Krzysztof Kacprzak)
3a08da3
Solution:   Redraw when closing gvim is cancelled.
3a08da3
Files:	    src/gui.c
3a08da3
3a08da3
3a08da3
*** ../vim-7.0.127/src/gui.c	Sun Oct  8 13:56:53 2006
3a08da3
--- src/gui.c	Tue Oct 10 13:45:13 2006
3a08da3
***************
3a08da3
*** 637,642 ****
3a08da3
--- 637,643 ----
3a08da3
  
3a08da3
  #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) || defined(FEAT_GUI_MSWIN) \
3a08da3
  	|| defined(FEAT_GUI_PHOTON) || defined(FEAT_GUI_MAC) || defined(PROTO)
3a08da3
+ # define NEED_GUI_UPDATE_SCREEN 1
3a08da3
  /*
3a08da3
   * Called when the GUI shell is closed by the user.  If there are no changed
3a08da3
   * files Vim exits, otherwise there will be a dialog to ask the user what to
3a08da3
***************
3a08da3
*** 665,672 ****
3a08da3
  
3a08da3
      exiting = FALSE;
3a08da3
      cmdmod = save_cmdmod;
3a08da3
!     setcursor();		/* position cursor */
3a08da3
!     out_flush();
3a08da3
  }
3a08da3
  #endif
3a08da3
  
3a08da3
--- 666,672 ----
3a08da3
  
3a08da3
      exiting = FALSE;
3a08da3
      cmdmod = save_cmdmod;
3a08da3
!     gui_update_screen();	/* redraw, window may show changed buffer */
3a08da3
  }
3a08da3
  #endif
3a08da3
  
3a08da3
***************
3a08da3
*** 4823,4828 ****
3a08da3
--- 4823,4829 ----
3a08da3
  #endif
3a08da3
  
3a08da3
  #if defined(FIND_REPLACE_DIALOG) || defined(FEAT_SUN_WORKSHOP) \
3a08da3
+ 	|| defined(NEED_GUI_UPDATE_SCREEN) \
3a08da3
  	|| defined(PROTO)
3a08da3
  /*
3a08da3
   * Update the current window and the screen.
3a08da3
*** ../vim-7.0.127/src/version.c	Tue Oct 10 16:20:51 2006
3a08da3
--- src/version.c	Tue Oct 10 17:35:42 2006
3a08da3
***************
3a08da3
*** 668,669 ****
3a08da3
--- 668,671 ----
3a08da3
  {   /* Add new patch number below this line */
3a08da3
+ /**/
3a08da3
+     128,
3a08da3
  /**/
3a08da3
3a08da3
-- 
3a08da3
How To Keep A Healthy Level Of Insanity:
3a08da3
18. When leaving the zoo, start running towards the parking lot,
3a08da3
    yelling "run for your lives, they're loose!!"
3a08da3
3a08da3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3a08da3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3a08da3
\\\        download, build and distribute -- http://www.A-A-P.org        ///
3a08da3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///