Commit d5789b65 authored by Miles Bader's avatar Miles Bader
Browse files

(pos_visible_p): Don't add `it.current_y' twice.

parent 4ecda532
2000-10-25 Miles Bader <miles@gnu.org>
* xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
2000-10-25 Gerd Moellmann <gerd@gnu.org>
* window.c (pos_fully_visible_p): Removed.
......
......@@ -954,9 +954,9 @@ pos_visible_p (w, charpos, fully)
int line_height;
if (it.max_ascent == 0 && it.max_descent == 0)
line_height = it.current_y + last_height;
line_height = last_height;
else
line_height = it.current_y + it.max_ascent + it.max_descent;
line_height = it.max_ascent + it.max_descent;
*fully = it.current_y + line_height <= it.last_visible_y;
visible_p = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment