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:
Wez Furlong committed 2019-12-31 14:35:36 -08:00
1 parent 699d092a6b
commit cc27f3f902
1 file changed
+1 -1
+1 -1
View File
@@ -1611,7 +1611,7 @@ impl TermWindow {
for cluster in cell_clusters {
let attrs = &cluster.attrs;
let is_highlited_hyperlink = match (&attrs.hyperlink, &current_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);