From 13d831ff0c8879bdf59e6de35a106ccb9b4766da Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 8 Jan 2011 14:46:03 +0100 Subject: [PATCH] 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. --- src/version.c | 2 ++ src/window.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 3c12b2fa1..4e5e1a935 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 99, /**/ 98, /**/ diff --git a/src/window.c b/src/window.c index 7ac1da81a..b3a7f9e74 100644 --- 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 -- 2.50.1