diff --git a/src/xdisp.c b/src/xdisp.c index 813858422d4..89b295932ed 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -18089,7 +18089,7 @@ compute_window_start_on_continuation_line (struct window *w) point will not be visible with any window start we compute. */ if (IT_CHARPOS (it) <= PT - || (CHARPOS (start_pos) - IT_CHARPOS (it) + && (CHARPOS (start_pos) - IT_CHARPOS (it) /* PXW: Do we need upper bounds here? */ < WINDOW_TOTAL_LINES (w) * WINDOW_TOTAL_COLS (w))) {