From cc27f3f9024704eaefb1b4d3dbc1e328a40bbf61 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 31 Dec 2019 14:35:36 -0800 Subject: [PATCH] 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 --- src/frontend/gui/termwindow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index 206563c5e..34eaa783b 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -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);