# HG changeset patch # User Kim F. Storm # Date 1160141445 0 # Node ID 47d70d72da4cf43407ff5c5d8e5f9ad69cee44b4 # Parent 5acfd0d8c45aaa4a101486e1f66432af46f4e778 (pos_visible_p): Fix value when EOB is visible. diff -r 5acfd0d8c45a -r 47d70d72da4c src/xdisp.c --- 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);