summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 666cd5847d..7ee471233b 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -519,6 +519,8 @@ plines_m_win(win_T *wp, linenr_T first, linenr_T last, int limit_winheight)
#endif
{
#ifdef FEAT_DIFF
+ if (first == wp->w_buffer->b_ml.ml_line_count)
+ count += diff_check_fill(wp, first + 1);
if (first == wp->w_topline)
count += plines_win_nofill(wp, first, limit_winheight)
+ wp->w_topfill;