diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 5 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 34e24712cd..f56c64f109 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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); diff --git a/src/nvim/version.c b/src/nvim/version.c index 7a044a2a65..88317fa8ee 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -483,7 +483,7 @@ static int included_patches[] = { // 808 NA 807, 806, - // 805, + 805, // 804, 803, 802, |