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