From f351b58b73be8c719a34372204be7f7825f0a00a Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 27 Oct 2005 15:03:53 +0000 Subject: [PATCH] * fringe.c (update_window_fringes): Handle case where buffer ends with a newline. --- src/ChangeLog | 5 +++++ src/fringe.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 297a23fe780..4f0e4c0d9e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-10-27 Chong Yidong + + * fringe.c (update_window_fringes): Handle case where buffer ends + with a newline. + 2005-10-27 Kenichi Handa * coding.h (DECODE_SYSTEM): Fix argument name; name->str. diff --git a/src/fringe.c b/src/fringe.c index 754ee68ca56..5513c3374c3 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -860,7 +860,7 @@ update_window_fringes (w, keep_current_p) if (!done_bot) { - if (MATRIX_ROW_END_CHARPOS (row) >= BUF_ZV (XBUFFER (w->buffer)) + if (row->ends_at_zv_p && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row)) row->indicate_eob_p = !NILP (boundary_bot), done_bot = 1; else if (y + row->height >= yb) -- 2.39.5