Use cursor color from theme
This commit is contained in:
parent
a33bdd1277
commit
824737f4e6
1 changed files with 4 additions and 0 deletions
|
|
@ -746,6 +746,10 @@ impl Terminal {
|
||||||
if term.colors()[NamedColor::Cursor].is_some() {
|
if term.colors()[NamedColor::Cursor].is_some() {
|
||||||
fg = bg;
|
fg = bg;
|
||||||
bg = convert_color(term.colors(), Color::Named(NamedColor::Cursor));
|
bg = convert_color(term.colors(), Color::Named(NamedColor::Cursor));
|
||||||
|
} else if self.colors[NamedColor::Cursor].is_some() {
|
||||||
|
//Use specific theme cursor color if exists
|
||||||
|
fg = bg;
|
||||||
|
bg = convert_color(&self.colors, Color::Named(NamedColor::Cursor));
|
||||||
} else {
|
} else {
|
||||||
mem::swap(&mut fg, &mut bg);
|
mem::swap(&mut fg, &mut bg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue