]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (note_fringe_highlight): Another attempt to fix bug#70385.
authorEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2024 18:23:37 +0000 (21:23 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:02:32 +0000 (14:02 +0300)
(cherry picked from commit d39f0a165a7f87336990e3304f1a8fa455a61600)

src/xdisp.c

index f8c8d763c5bbcfc472f7d6057999780e8454fdd0..3db8d64f731b555b25adbe07a77180ca50f83494 100644 (file)
@@ -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)))