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)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 309,
/**/
308,
/**/
--wp->w_wrow;
}
}
+ set_topline(wp, lnum);
}
- else
+ else if (sline > 0)
{
while (sline > 0 && lnum > 1)
{
lnum++;
wp->w_wrow -= line_size + sline;
}
- else if (sline >= 0)
+ else if (sline > 0)
{
/* First line of file reached, use that as topline. */
lnum = 1;
wp->w_wrow -= sline;
}
+
+ set_topline(wp, lnum);
}
- set_topline(wp, lnum);
}
if (wp == curwin)