HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee37d13
)
(pos_visible_p): Fix value when EOB is visible.
author
Kim F. Storm
<storm@cua.dk>
Fri, 6 Oct 2006 13:30:45 +0000
(13:30 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Fri, 6 Oct 2006 13:30:45 +0000
(13:30 +0000)
src/xdisp.c
patch
|
blob
|
blame
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index
a8da5aa
..
84e585b
100644
(file)
--- 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);