Commit 5966e8bf authored by Egmont Koblinger's avatar Egmont Koblinger

ring: Proper boundary checking for hyperlink position

This fixes a rare crash around hyperlinks in a non grid aligned
VTE widget when the mouse enters the extra padding at the bottom.
(cherry picked from commit d7df8276)
parent 629cda75
......@@ -669,7 +669,7 @@ _vte_ring_get_hyperlink_at_position (VteRing *ring, gulong position, int col, bo
ring->cached_row_num = (gulong) -1;
if (G_UNLIKELY (position == (gulong) -1 || col == -1)) {
if (G_UNLIKELY (!_vte_ring_contains(ring, position) || col == -1)) {
if (update_hover_idx)
ring->hyperlink_hover_idx = 0;
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment