From 6399d235705bd1ddbf0370a4dd4ee8a7abf22c0d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 16 Apr 2024 21:23:37 +0300 Subject: [PATCH] * src/xdisp.c (note_fringe_highlight): Another attempt to fix bug#70385. (cherry picked from commit d39f0a165a7f87336990e3304f1a8fa455a61600) --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index f8c8d763c5b..3db8d64f731 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -35775,7 +35775,8 @@ note_fringe_highlight (struct frame *f, Lisp_Object window, int x, int y, /* Don't access the TEXT_AREA of a row that does not display text, when the window is outdated, or when vpos overflows the current matrix. (bug#70385) */ - if (window_outdated (w) + if (!w->window_end_valid + || window_outdated (w) || (vpos >= w->current_matrix->nrows) || !MATRIX_ROW_DISPLAYS_TEXT_P (MATRIX_ROW (w->current_matrix, vpos))) -- 2.39.5