From c0b9041ebde82907711cc00a7c307fe622fb541c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 9 Dec 2021 21:29:32 +0200 Subject: [PATCH] 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) --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) { -- 2.39.2