Karsten Hopp 424e24
To: vim-dev@vim.org
Karsten Hopp 424e24
Subject: Patch 7.0.037
Karsten Hopp 424e24
Fcc: outbox
Karsten Hopp 424e24
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 424e24
Mime-Version: 1.0
Karsten Hopp 424e24
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 424e24
Content-Transfer-Encoding: 8bit
Karsten Hopp 424e24
------------
Karsten Hopp 424e24
Karsten Hopp 424e24
Patch 7.0.037
Karsten Hopp 424e24
Problem:    Crash when resizing the GUI window vertically when there is a line
Karsten Hopp 424e24
	    that doesn't fit.
Karsten Hopp 424e24
Solution:   Don't redraw while the screen data is invalid.
Karsten Hopp 424e24
Files:	    src/screen.c
Karsten Hopp 424e24
Karsten Hopp 424e24
Karsten Hopp 424e24
*** ../vim-7.0.036/src/screen.c	Tue Jul 11 22:36:19 2006
Karsten Hopp 424e24
--- src/screen.c	Tue Jul 11 21:33:53 2006
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 7129,7134 ****
Karsten Hopp 424e24
--- 7129,7140 ----
Karsten Hopp 424e24
  	return;
Karsten Hopp 424e24
      entered = TRUE;
Karsten Hopp 424e24
  
Karsten Hopp 424e24
+     /*
Karsten Hopp 424e24
+      * Note that the window sizes are updated before reallocating the arrays,
Karsten Hopp 424e24
+      * thus we must not redraw here!
Karsten Hopp 424e24
+      */
Karsten Hopp 424e24
+     ++RedrawingDisabled;
Karsten Hopp 424e24
+ 
Karsten Hopp 424e24
      win_new_shellsize();    /* fit the windows in the new sized shell */
Karsten Hopp 424e24
  
Karsten Hopp 424e24
      comp_col();		/* recompute columns for shown command and ruler */
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 7363,7368 ****
Karsten Hopp 424e24
--- 7369,7375 ----
Karsten Hopp 424e24
  #endif
Karsten Hopp 424e24
  
Karsten Hopp 424e24
      entered = FALSE;
Karsten Hopp 424e24
+     --RedrawingDisabled;
Karsten Hopp 424e24
  
Karsten Hopp 424e24
  #ifdef FEAT_AUTOCMD
Karsten Hopp 424e24
      if (starting == 0)
Karsten Hopp 424e24
*** ../vim-7.0.036/src/version.c	Tue Jul 11 22:36:19 2006
Karsten Hopp 424e24
--- src/version.c	Tue Jul 11 22:38:39 2006
Karsten Hopp 424e24
***************
Karsten Hopp 424e24
*** 668,669 ****
Karsten Hopp 424e24
--- 668,671 ----
Karsten Hopp 424e24
  {   /* Add new patch number below this line */
Karsten Hopp 424e24
+ /**/
Karsten Hopp 424e24
+     37,
Karsten Hopp 424e24
  /**/
Karsten Hopp 424e24
Karsten Hopp 424e24
-- 
Karsten Hopp 424e24
For society, it's probably a good thing that engineers value function over
Karsten Hopp 424e24
appearance.  For example, you wouldn't want engineers to build nuclear power
Karsten Hopp 424e24
plants that only _look_ like they would keep all the radiation inside.
Karsten Hopp 424e24
				(Scott Adams - The Dilbert principle)
Karsten Hopp 424e24
Karsten Hopp 424e24
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 424e24
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 424e24
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 424e24
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///