diff options
author | Kim F. Storm <storm@cua.dk> | 2006-10-06 13:30:45 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-10-06 13:30:45 +0000 |
commit | 7c6b06c66db293b245ec45c8882e90c72a635e41 (patch) | |
tree | 64f83300ea921da1944984d6902155668bc56bca /src/xdisp.c | |
parent | ee37d13588f65ab5d9657e6cd269cd8d0109baa2 (diff) | |
download | emacs-7c6b06c66db293b245ec45c8882e90c72a635e41.tar.gz |
(pos_visible_p): Fix value when EOB is visible.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index a8da5aa848e..84e585bbd1e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1346,7 +1346,8 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, rowh, vpos) 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); |