changeset 73262:47d70d72da4c

(pos_visible_p): Fix value when EOB is visible.
author Kim F. Storm <storm@cua.dk>
date Fri, 06 Oct 2006 13:30:45 +0000
parents 5acfd0d8c45a
children 0c9eb0495cde
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Oct 06 13:30:34 2006 +0000
+++ b/src/xdisp.c	Fri Oct 06 13:30:45 2006 +0000
@@ -1346,7 +1346,8 @@
       it2 = it;
       if (IT_CHARPOS (it) < ZV && FETCH_BYTE (IT_BYTEPOS (it)) != '\n')
 	move_it_by_lines (&it, 1, 0);
-      if (charpos < IT_CHARPOS (it))
+      if (charpos < IT_CHARPOS (it)
+	  || (it.what == IT_EOB && charpos == IT_CHARPOS (it)))
 	{
 	  visible_p = 1;
 	  move_it_to (&it2, charpos, -1, -1, -1, MOVE_TO_POS);