Karsten Hopp afbf50
To: vim_dev@googlegroups.com
Karsten Hopp afbf50
Subject: Patch 7.3.099
Karsten Hopp afbf50
Fcc: outbox
Karsten Hopp afbf50
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp afbf50
Mime-Version: 1.0
Karsten Hopp afbf50
Content-Type: text/plain; charset=UTF-8
Karsten Hopp afbf50
Content-Transfer-Encoding: 8bit
Karsten Hopp afbf50
------------
Karsten Hopp afbf50
Karsten Hopp afbf50
Patch 7.3.099
Karsten Hopp afbf50
Problem:    Crash when splitting a window with zero height. (Yukihiro
Karsten Hopp afbf50
	    Nakadaira)
Karsten Hopp afbf50
Solution:   Don't set the fraction in a window with zero height.
Karsten Hopp afbf50
Files:	    src/window.c
Karsten Hopp afbf50
Karsten Hopp afbf50
Karsten Hopp afbf50
*** ../vim-7.3.098/src/window.c	2010-12-17 17:35:05.000000000 +0100
Karsten Hopp afbf50
--- src/window.c	2011-01-08 14:41:32.000000000 +0100
Karsten Hopp afbf50
***************
Karsten Hopp afbf50
*** 986,992 ****
Karsten Hopp afbf50
  
Karsten Hopp afbf50
      /* Set w_fraction now so that the cursor keeps the same relative
Karsten Hopp afbf50
       * vertical position. */
Karsten Hopp afbf50
!     set_fraction(oldwin);
Karsten Hopp afbf50
      wp->w_fraction = oldwin->w_fraction;
Karsten Hopp afbf50
  
Karsten Hopp afbf50
  #ifdef FEAT_VERTSPLIT
Karsten Hopp afbf50
--- 986,993 ----
Karsten Hopp afbf50
  
Karsten Hopp afbf50
      /* Set w_fraction now so that the cursor keeps the same relative
Karsten Hopp afbf50
       * vertical position. */
Karsten Hopp afbf50
!     if (oldwin->w_height > 0)
Karsten Hopp afbf50
! 	set_fraction(oldwin);
Karsten Hopp afbf50
      wp->w_fraction = oldwin->w_fraction;
Karsten Hopp afbf50
  
Karsten Hopp afbf50
  #ifdef FEAT_VERTSPLIT
Karsten Hopp afbf50
*** ../vim-7.3.098/src/version.c	2011-01-04 19:25:46.000000000 +0100
Karsten Hopp afbf50
--- src/version.c	2011-01-08 14:44:02.000000000 +0100
Karsten Hopp afbf50
***************
Karsten Hopp afbf50
*** 716,717 ****
Karsten Hopp afbf50
--- 716,719 ----
Karsten Hopp afbf50
  {   /* Add new patch number below this line */
Karsten Hopp afbf50
+ /**/
Karsten Hopp afbf50
+     99,
Karsten Hopp afbf50
  /**/
Karsten Hopp afbf50
Karsten Hopp afbf50
-- 
Karsten Hopp afbf50
From "know your smileys":
Karsten Hopp afbf50
 8-O 	"Omigod!!" (done "rm -rf *" ?)
Karsten Hopp afbf50
Karsten Hopp afbf50
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp afbf50
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp afbf50
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp afbf50
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///