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>
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;