mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
cdc7250cd8
commit
cfce719c66
@ -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);
|
||||
|
@ -483,7 +483,7 @@ static int included_patches[] = {
|
||||
// 808 NA
|
||||
807,
|
||||
806,
|
||||
// 805,
|
||||
805,
|
||||
// 804,
|
||||
803,
|
||||
802,
|
||||
|
Loading…
Reference in New Issue
Block a user