summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-04-17 14:50:38 +0300
committerEli Zaretskii <eliz@gnu.org>2024-04-17 14:50:38 +0300
commit42b3024ca8e2d844084d2e8c78f58f530e1b18b3 (patch)
tree4249b13e00c033fc3420fb11cab048f526587a77 /src/xdisp.c
parent1606e14c6f1fb5c524dd21ac1b1187b5230f683e (diff)
downloademacs-42b3024ca8e2d844084d2e8c78f58f530e1b18b3.tar.gz
Another fix for bug#70385
* src/xdisp.c (note_fringe_highlight): Check value of x_y_to_hpos_vpos.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 5073af3e04f..5fe16ab9536 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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