]> git.eshelyaron.com Git - emacs.git/commitdiff
Another fix for bug#70385
authorEli Zaretskii <eliz@gnu.org>
Wed, 17 Apr 2024 11:50:38 +0000 (14:50 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:03:10 +0000 (14:03 +0300)
* src/xdisp.c (note_fringe_highlight): Check value of x_y_to_hpos_vpos.

(cherry picked from commit 42b3024ca8e2d844084d2e8c78f58f530e1b18b3)

src/xdisp.c

index 5073af3e04f777a20898a871bb68c5cb91cbc4c3..5fe16ab95369618ea74cec92c93153767cef9722 100644 (file)
@@ -35770,7 +35770,8 @@ note_fringe_highlight (struct frame *f, Lisp_Object window, int x, int y,
   /* Translate windows coordinates into a vertical window position.  */
   int hpos, vpos, area;
   struct window *w = XWINDOW (window);
-  x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area);
+  if (x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area) == NULL)
+    return;    /* not all glyph rows between 0 and Y are enabled */
 
   /* 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