Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7c6b06c6
Commit
7c6b06c6
authored
Oct 06, 2006
by
Kim F. Storm
Browse files
(pos_visible_p): Fix value when EOB is visible.
parent
ee37d135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/xdisp.c
src/xdisp.c
+2
-1
No files found.
src/xdisp.c
View file @
7c6b06c6
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment