vim-patch:7.4.805

Problem:    The ruler shows "Bot" even when there are only filler lines
            missing. (Gary Johnson)
Solution:   Use "All" when the first line and one filler line are visible.

29bc9db36e
This commit is contained in:
Jurica Bradaric 2016-02-02 18:40:10 +01:00
parent cdc7250cd8
commit cfce719c66
2 changed files with 6 additions and 1 deletions

View File

@ -3895,6 +3895,11 @@ void get_rel_pos(win_T *wp, char_u *buf, int buflen)
above = wp->w_topline - 1;
above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill;
if (wp->w_topline == 1 && wp->w_topfill >= 1) {
// All buffer lines are displayed and there is an indication
// of filler lines, that can be considered seeing all lines.
above = 0;
}
below = wp->w_buffer->b_ml.ml_line_count - wp->w_botline + 1;
if (below <= 0)
STRLCPY(buf, (above == 0 ? _("All") : _("Bot")), buflen);

View File

@ -483,7 +483,7 @@ static int included_patches[] = {
// 808 NA
807,
806,
// 805,
805,
// 804,
803,
802,