diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-01-08 14:46:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-01-08 14:46:03 +0100 |
commit | 13d831ff0c8879bdf59e6de35a106ccb9b4766da (patch) | |
tree | 07d6c808738fcc2558783cbc2a5554a653313bc9 /src/window.c | |
parent | fd0e75683f248070496b0e315052ccfcfe7dee26 (diff) | |
download | vim-git-13d831ff0c8879bdf59e6de35a106ccb9b4766da.tar.gz |
updated for version 7.3.099v7.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.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |