Clarify a comment in xdisp.c

* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment.  (Bug#52378)
This commit is contained in:
Eli Zaretskii 2021-12-09 09:18:04 +02:00
parent 6ba2f028cf
commit 35a96139df

View file

@ -17798,10 +17798,11 @@ compute_window_start_on_continuation_line (struct window *w)
row, DEFAULT_FACE_ID); row, DEFAULT_FACE_ID);
reseat_at_previous_visible_line_start (&it); reseat_at_previous_visible_line_start (&it);
/* If the line start is "too far" away from the window start, /* Give up (by not using the code in the block below) and say it
say it takes too much time to compute a new window start. takes too much time to compute a new window start, if the
Also, give up if the line start is after point, as in that line start is "too far" away from the window start. Also,
case point will not be visible with any window start we give up if the line start is after point, as in that case
point will not be visible with any window start we
compute. */ compute. */
if (IT_CHARPOS (it) <= PT if (IT_CHARPOS (it) <= PT
|| (CHARPOS (start_pos) - IT_CHARPOS (it) || (CHARPOS (start_pos) - IT_CHARPOS (it)