wezterm-gui: fix over-invalidation when hovering hyperlinks

refs: #964
This commit is contained in:
Wez Furlong committed 2021-07-21 08:58:35 -07:00
1 parent 07dfccaddd
commit 5434a2a581
1 file changed
+7
+7
View File
@@ -415,6 +415,13 @@ impl super::TermWindow {
(Some(old_link), Some(new_link)) if Arc::ptr_eq(&old_link, &new_link) => {
// Unchanged
}
(Some(old_link), Some(new_link)) if *old_link == new_link => {
// Unchanged
// Note: ideally this case wouldn't exist, as we *should*
// only be matching distinct instances of the hyperlink.
// However, for horrible reasons, we always end up with duplicated
// hyperlink instances today, so we have to do a deeper compare.
}
(None, None) => {
// Unchanged
}