0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.309

Problem:    When increasing the size of the lower window, the upper window
            jumps back to the top. (Ron Aaron)
Solution:   Change setting the topline. (Nobuhiro Takasaki)
This commit is contained in:
Bram Moolenaar 2014-05-28 13:43:04 +02:00
parent 846a2ff5f3
commit dd0402a759
2 changed files with 7 additions and 3 deletions

View File

@ -734,6 +734,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 */
/**/
309,
/**/ /**/
308, 308,
/**/ /**/

View File

@ -5710,8 +5710,9 @@ win_new_height(wp, height)
--wp->w_wrow; --wp->w_wrow;
} }
} }
set_topline(wp, lnum);
} }
else else if (sline > 0)
{ {
while (sline > 0 && lnum > 1) while (sline > 0 && lnum > 1)
{ {
@ -5748,14 +5749,15 @@ win_new_height(wp, height)
lnum++; lnum++;
wp->w_wrow -= line_size + sline; wp->w_wrow -= line_size + sline;
} }
else if (sline >= 0) else if (sline > 0)
{ {
/* First line of file reached, use that as topline. */ /* First line of file reached, use that as topline. */
lnum = 1; lnum = 1;
wp->w_wrow -= sline; wp->w_wrow -= sline;
} }
set_topline(wp, lnum);
} }
set_topline(wp, lnum);
} }
if (wp == curwin) if (wp == curwin)