]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.099 v7.3.099
authorBram Moolenaar <Bram@vim.org>
Sat, 8 Jan 2011 13:46:03 +0000 (14:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 8 Jan 2011 13:46:03 +0000 (14:46 +0100)
Problem:    Crash when splitting a window with zero height. (Yukihiro
            Nakadaira)
Solution:   Don't set the fraction in a window with zero height.

src/version.c
src/window.c

index 3c12b2fa198af388fc638d49b36cde41dab4387d..4e5e1a9350c2b2ef098e5ed6276e7a73214c387f 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    99,
 /**/
     98,
 /**/
index 7ac1da81a42707ea558fa399fead7676316ff479..b3a7f9e742cfe6e2ec038db6a567aefe62a1bea4 100644 (file)
@@ -986,7 +986,8 @@ win_split_ins(size, flags, newwin, dir)
 
     /* Set w_fraction now so that the cursor keeps the same relative
      * vertical position. */
-    set_fraction(oldwin);
+    if (oldwin->w_height > 0)
+       set_fraction(oldwin);
     wp->w_fraction = oldwin->w_fraction;
 
 #ifdef FEAT_VERTSPLIT