mirror of
https://github.com/wez/wezterm.git
synced 2025-01-03 03:04:04 +03:00
Only highlight cells that use exactly the highlight URL
If the cells refer to the same object instance (rather than equivalent instances), then we treat them as part of the same highlight. Refs: https://github.com/wez/wezterm/issues/94
This commit is contained in:
parent
699d092a6b
commit
cc27f3f902
@ -1611,7 +1611,7 @@ impl TermWindow {
|
||||
for cluster in cell_clusters {
|
||||
let attrs = &cluster.attrs;
|
||||
let is_highlited_hyperlink = match (&attrs.hyperlink, ¤t_highlight) {
|
||||
(&Some(ref this), &Some(ref highlight)) => this == highlight,
|
||||
(&Some(ref this), &Some(ref highlight)) => Arc::ptr_eq(this, highlight),
|
||||
_ => false,
|
||||
};
|
||||
let style = self.fonts.match_style(&config, attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user