try_window (window, it.current.pos, 0);
}
else if (scroll_conservatively > SCROLL_LIMIT
- && it.method == GET_FROM_STRING
+ && (it.method == GET_FROM_STRING
+ || overlay_touches_p (IT_CHARPOS (it)))
&& IT_CHARPOS (it) < ZV)
{
/* If the window starts with a before-string that spans more
clear_glyph_matrix (w->desired_matrix);
do {
move_it_by_lines (&it, 1);
- } while (IT_CHARPOS (it) == pos0 && it.method == GET_FROM_STRING);
+ } while (IT_CHARPOS (it) == pos0);
try_window (window, it.current.pos, 0);
}
else