1
1
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:
Wez Furlong 2019-12-31 14:35:36 -08:00
parent 699d092a6b
commit cc27f3f902

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);