From fee2768777f8907d3c1ced05b63925328f79add5 Mon Sep 17 00:00:00 2001 From: mara <43048142+vmedea@users.noreply.github.com> Date: Sun, 27 Oct 2019 19:36:24 +0100 Subject: [PATCH] crossterm: Correct attribute for end of underline and reverse effect (#399) - `NoUnderline` instead of `Underline` - `NoInverse` instead of `Reverse` --- src/backend/crossterm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/crossterm.rs b/src/backend/crossterm.rs index 4d62fa7..dfec240 100644 --- a/src/backend/crossterm.rs +++ b/src/backend/crossterm.rs @@ -251,13 +251,13 @@ impl backend::Backend for Backend { fn unset_effect(&self, effect: theme::Effect) { match effect { theme::Effect::Simple => (), - theme::Effect::Reverse => self.set_attr(Attribute::Reverse), + theme::Effect::Reverse => self.set_attr(Attribute::NoInverse), theme::Effect::Bold => self.set_attr(Attribute::NoBold), theme::Effect::Italic => self.set_attr(Attribute::NoItalic), theme::Effect::Strikethrough => { self.set_attr(Attribute::NotCrossedOut) } - theme::Effect::Underline => self.set_attr(Attribute::Underlined), + theme::Effect::Underline => self.set_attr(Attribute::NoUnderline), } } }