0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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.
This commit is contained in:
Bram Moolenaar 2015-08-04 17:43:25 +02:00
parent 43fe32900c
commit 29bc9db36e
2 changed files with 6 additions and 0 deletions

View File

@ -4434,6 +4434,10 @@ get_rel_pos(wp, buf, buflen)
above = wp->w_topline - 1; above = wp->w_topline - 1;
#ifdef FEAT_DIFF #ifdef FEAT_DIFF
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)
above = 0; /* All buffer lines are displayed and there is an
* indication of filler lines, that can be considered
* seeing all lines. */
#endif #endif
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)

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
805,
/**/ /**/
804, 804,
/**/ /**/