Use cursor color from theme

This commit is contained in:
Mattias Eriksson 2024-06-27 10:30:31 +02:00
parent a33bdd1277
commit 824737f4e6

View file

@ -746,6 +746,10 @@ impl Terminal {
if term.colors()[NamedColor::Cursor].is_some() {
fg = bg;
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 {
mem::swap(&mut fg, &mut bg);
}