aboutsummaryrefslogtreecommitdiff
path: root/src/term/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/color.rs')
-rw-r--r--src/term/color.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/color.rs b/src/term/color.rs
index 0706f9df..3eab1fe5 100644
--- a/src/term/color.rs
+++ b/src/term/color.rs
@@ -61,8 +61,8 @@ impl List {
self[ansi::NamedColor::Background] = colors.primary.background;
// Foreground and background for custom cursor colors
- self[ansi::NamedColor::CursorText] = colors.cursor.text;
- self[ansi::NamedColor::Cursor] = colors.cursor.cursor;
+ self[ansi::NamedColor::CursorText] = colors.cursor.text.unwrap_or_else(Rgb::default);
+ self[ansi::NamedColor::Cursor] = colors.cursor.cursor.unwrap_or_else(Rgb::default);
// Dims
self[ansi::NamedColor::DimForeground] = colors