changeset 2680:27621abffed2 v7.3.099

updated for version 7.3.099 Problem: Crash when splitting a window with zero height. (Yukihiro Nakadaira) Solution: Don't set the fraction in a window with zero height.
author Bram Moolenaar <bram@vim.org>
date Sat, 08 Jan 2011 14:46:03 +0100
parents 763272b18e4f
children 85c5a72551e2
files src/version.c src/window.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    99,
+/**/
     98,
 /**/
     97,
--- a/src/window.c
+++ b/src/window.c
@@ -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