* fringe.c (update_window_fringes): Handle case where buffer ends

with a newline.
This commit is contained in:
Chong Yidong 2005-10-27 15:03:53 +00:00
parent cc795ef0bb
commit f351b58b73
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-27 Chong Yidong <cyd@stupidchicken.com>
* fringe.c (update_window_fringes): Handle case where buffer ends
with a newline.
2005-10-27 Kenichi Handa <handa@m17n.org>
* coding.h (DECODE_SYSTEM): Fix argument name; name->str.

View file

@ -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)