mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00: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:
@@ -3895,6 +3895,11 @@ void get_rel_pos(win_T *wp, char_u *buf, int buflen)
|
|||||||
|
|
||||||
above = wp->w_topline - 1;
|
above = wp->w_topline - 1;
|
||||||
above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill;
|
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;
|
below = wp->w_buffer->b_ml.ml_line_count - wp->w_botline + 1;
|
||||||
if (below <= 0)
|
if (below <= 0)
|
||||||
STRLCPY(buf, (above == 0 ? _("All") : _("Bot")), buflen);
|
STRLCPY(buf, (above == 0 ? _("All") : _("Bot")), buflen);
|
||||||
|
@@ -483,7 +483,7 @@ static int included_patches[] = {
|
|||||||
// 808 NA
|
// 808 NA
|
||||||
807,
|
807,
|
||||||
806,
|
806,
|
||||||
// 805,
|
805,
|
||||||
// 804,
|
// 804,
|
||||||
803,
|
803,
|
||||||
802,
|
802,
|
||||||
|
Reference in New Issue
Block a user