summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r--alacritty_terminal/src/term/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs
index d3f45e9a..bd331c68 100644
--- a/alacritty_terminal/src/term/cell.rs
+++ b/alacritty_terminal/src/term/cell.rs
@@ -167,7 +167,7 @@ impl Cell {
&& self
.extra
.as_ref()
- .map_or(true, |extra| !extra.zerowidth.is_empty() || extra.hyperlink.is_some())
+ .map_or(true, |extra| extra.zerowidth.is_empty() && extra.hyperlink.is_none())
{
self.extra = None;
} else {
@@ -186,7 +186,7 @@ impl Cell {
pub fn set_hyperlink(&mut self, hyperlink: Option<Hyperlink>) {
let should_drop = hyperlink.is_none()
&& self.extra.as_ref().map_or(true, |extra| {
- !extra.zerowidth.is_empty() || extra.underline_color.is_some()
+ extra.zerowidth.is_empty() && extra.underline_color.is_none()
});
if should_drop {