mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +00:00
crossterm: Correct attribute for end of underline and reverse effect (#399)
- `NoUnderline` instead of `Underline` - `NoInverse` instead of `Reverse`
This commit is contained in:
parent
0b56f423d8
commit
fee2768777
@ -251,13 +251,13 @@ impl backend::Backend for Backend {
|
|||||||
fn unset_effect(&self, effect: theme::Effect) {
|
fn unset_effect(&self, effect: theme::Effect) {
|
||||||
match effect {
|
match effect {
|
||||||
theme::Effect::Simple => (),
|
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::Bold => self.set_attr(Attribute::NoBold),
|
||||||
theme::Effect::Italic => self.set_attr(Attribute::NoItalic),
|
theme::Effect::Italic => self.set_attr(Attribute::NoItalic),
|
||||||
theme::Effect::Strikethrough => {
|
theme::Effect::Strikethrough => {
|
||||||
self.set_attr(Attribute::NotCrossedOut)
|
self.set_attr(Attribute::NotCrossedOut)
|
||||||
}
|
}
|
||||||
theme::Effect::Underline => self.set_attr(Attribute::Underlined),
|
theme::Effect::Underline => self.set_attr(Attribute::NoUnderline),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user