mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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.
This commit is contained in:
parent
fd0e75683f
commit
13d831ff0c
@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
99,
|
||||||
/**/
|
/**/
|
||||||
98,
|
98,
|
||||||
/**/
|
/**/
|
||||||
|
@ -986,6 +986,7 @@ win_split_ins(size, flags, newwin, dir)
|
|||||||
|
|
||||||
/* Set w_fraction now so that the cursor keeps the same relative
|
/* Set w_fraction now so that the cursor keeps the same relative
|
||||||
* vertical position. */
|
* vertical position. */
|
||||||
|
if (oldwin->w_height > 0)
|
||||||
set_fraction(oldwin);
|
set_fraction(oldwin);
|
||||||
wp->w_fraction = oldwin->w_fraction;
|
wp->w_fraction = oldwin->w_fraction;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user