crossterm: Correct attribute for end of underline and reverse effect (#399)

- `NoUnderline` instead of `Underline`
- `NoInverse` instead of `Reverse`
This commit is contained in:
mara 2019-10-27 19:36:24 +01:00 committed by Alexandre Bury
parent 0b56f423d8
commit fee2768777

View File

@ -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),
}
}
}