mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.708
Problem: Filler lines above the first line may be hidden when opening Vim. Solution: Change how topfill is computed. (Christian Brabandt)
This commit is contained in:
@@ -615,11 +615,13 @@ diff_redraw(dofold)
|
||||
#endif
|
||||
/* A change may have made filler lines invalid, need to take care
|
||||
* of that for other windows. */
|
||||
if (wp != curwin && wp->w_topfill > 0)
|
||||
n = diff_check(wp, wp->w_topline);
|
||||
if ((wp != curwin && wp->w_topfill > 0) || n > 0)
|
||||
{
|
||||
n = diff_check(wp, wp->w_topline);
|
||||
if (wp->w_topfill > n)
|
||||
wp->w_topfill = (n < 0 ? 0 : n);
|
||||
else if (n > 0 && n > wp->w_topfill)
|
||||
wp->w_topfill = n;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user