From: Eli Zaretskii Date: Thu, 9 Dec 2021 19:29:32 +0000 (+0200) Subject: Fix logic in 'compute_window_start_on_continuation_line' X-Git-Tag: emacs-29.0.90~3607^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0b9041ebde82907711cc00a7c307fe622fb541c;p=emacs.git Fix logic in 'compute_window_start_on_continuation_line' * src/xdisp.c (compute_window_start_on_continuation_line): Fix a thinko in logic. Patch by dickmao . (Bug#52378) --- 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))) {