Mercurial > vim
comparison src/buffer.c @ 6975:7b5f9313f40b v7.4.805
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 04 Aug 2015 17:43:25 +0200 |
parents | 957a3bb312fa |
children | 22f87d5e9533 |
comparison
equal
deleted
inserted
replaced
6974:7bb1cd01d108 | 6975:7b5f9313f40b |
---|---|
4432 if (buflen < 3) /* need at least 3 chars for writing */ | 4432 if (buflen < 3) /* need at least 3 chars for writing */ |
4433 return; | 4433 return; |
4434 above = wp->w_topline - 1; | 4434 above = wp->w_topline - 1; |
4435 #ifdef FEAT_DIFF | 4435 #ifdef FEAT_DIFF |
4436 above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill; | 4436 above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill; |
4437 if (wp->w_topline == 1 && wp->w_topfill >= 1) | |
4438 above = 0; /* All buffer lines are displayed and there is an | |
4439 * indication of filler lines, that can be considered | |
4440 * seeing all lines. */ | |
4437 #endif | 4441 #endif |
4438 below = wp->w_buffer->b_ml.ml_line_count - wp->w_botline + 1; | 4442 below = wp->w_buffer->b_ml.ml_line_count - wp->w_botline + 1; |
4439 if (below <= 0) | 4443 if (below <= 0) |
4440 vim_strncpy(buf, (char_u *)(above == 0 ? _("All") : _("Bot")), | 4444 vim_strncpy(buf, (char_u *)(above == 0 ? _("All") : _("Bot")), |
4441 (size_t)(buflen - 1)); | 4445 (size_t)(buflen - 1)); |