1
0
forked from aniani/vim

updated for version 7.0g02

This commit is contained in:
Bram Moolenaar
2006-05-03 21:26:49 +00:00
parent c05f93ffba
commit 9c102387af
21 changed files with 328 additions and 228 deletions

View File

@@ -5195,6 +5195,7 @@ win_new_height(wp, height)
int sline, line_size;
int space;
int did_below = FALSE;
int old_height = wp->w_height;
#define FRACTION_MULT 16384L
/* Don't want a negative height. Happens when splitting a tiny window.
@@ -5238,9 +5239,15 @@ win_new_height(wp, height)
}
else
{
space = height;
space = height - 1;
while (lnum > 1)
{
/* When using "~" lines stop when at the old topline, don't
* scroll down. */
if (did_below && height < old_height && lnum <= wp->w_topline)
sline = 0;
space -= line_size;
if (space > 0 && sline <= 0 && !did_below)
{