From 4beb8e89636b700b6857b106e645be0f1bfbe93b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 7 May 2026 17:45:19 +0300 Subject: [PATCH] Fix infloop in redisplay due to continuation glyphs * src/xdisp.c (display_line): When inserting continuation glyphs, account for the border glyph in non-rightmost windows on TTY frames. (Bug#80975) --- src/xdisp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 52f8257e76f..773aba2789f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -26316,7 +26316,10 @@ display_line (struct it *it, int cursor_vpos) /* Fill the rest of the row with continuation glyphs like in 20.x. */ while (row->glyphs[TEXT_AREA] + row->used[TEXT_AREA] - < row->glyphs[1 + TEXT_AREA]) + < (row->glyphs[1 + TEXT_AREA] + /* Account for the border glyph. */ + - (!WINDOW_RIGHTMOST_P (it->w) + && WINDOW_RIGHT_MARGIN_WIDTH (it->w) == 0))) produce_special_glyphs (it, IT_CONTINUATION, it->bidi_it.paragraph_dir, false);