mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
renderer: only highlight link directly under mouse on line
Related to #1398
This commit is contained in:
@ -117,10 +117,11 @@ pub const Set = struct {
|
|||||||
|
|
||||||
// If this is a highlight link then we only want to
|
// If this is a highlight link then we only want to
|
||||||
// include matches that include our hover point.
|
// include matches that include our hover point.
|
||||||
if (link.highlight == .hover and
|
switch (link.highlight) {
|
||||||
!sel.contains(mouse_pt))
|
.always, .always_mods => {},
|
||||||
{
|
.hover,
|
||||||
continue;
|
.hover_mods,
|
||||||
|
=> if (!sel.contains(mouse_pt)) continue,
|
||||||
}
|
}
|
||||||
|
|
||||||
try matches.append(sel);
|
try matches.append(sel);
|
||||||
|
Reference in New Issue
Block a user