Commit a13be207 authored by Gerd Moellmann's avatar Gerd Moellmann

(pos_visible_p): Take into account that CHARPOS maybe

in or at the start of invisible text.
parent 1a8a9daf
2001-01-02 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
in or at the start of invisible text.
* dispnew.c (update_window): Don't check_current_matrix_flags.
2001-01-01 Jason Rumney <jasonr@gnu.org>
......
......@@ -1012,8 +1012,9 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
start_display (&it, w, top);
move_it_to (&it, charpos, 0, it.last_visible_y, -1,
MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y);
if (IT_CHARPOS (it) == charpos)
/* Note that we may overshoot because of invisible text. */
if (IT_CHARPOS (it) >= charpos)
{
int line_height, line_bottom_y;
int line_top_y = it.current_y;
......
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