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
|
||||
// include matches that include our hover point.
|
||||
if (link.highlight == .hover and
|
||||
!sel.contains(mouse_pt))
|
||||
{
|
||||
continue;
|
||||
switch (link.highlight) {
|
||||
.always, .always_mods => {},
|
||||
.hover,
|
||||
.hover_mods,
|
||||
=> if (!sel.contains(mouse_pt)) continue,
|
||||
}
|
||||
|
||||
try matches.append(sel);
|
||||
|
Reference in New Issue
Block a user