changeset 66471:430485ba3d28

* fringe.c (update_window_fringes): Handle case where buffer ends with a newline.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 27 Oct 2005 15:03:53 +0000
parents e6a6732d08c3
children 854391a4e15f
files src/ChangeLog src/fringe.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 27 07:05:04 2005 +0000
+++ b/src/ChangeLog	Thu Oct 27 15:03:53 2005 +0000
@@ -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.
--- a/src/fringe.c	Thu Oct 27 07:05:04 2005 +0000
+++ b/src/fringe.c	Thu Oct 27 15:03:53 2005 +0000
@@ -860,7 +860,7 @@
 
 	      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)