From: Chong Yidong Date: Thu, 27 Oct 2005 15:03:53 +0000 (+0000) Subject: * fringe.c (update_window_fringes): Handle case where buffer ends X-Git-Tag: emacs-pretest-22.0.90~6267 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f351b58b73be8c719a34372204be7f7825f0a00a;p=emacs.git * fringe.c (update_window_fringes): Handle case where buffer ends with a newline. --- 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)