renderer: default cursor color to foreground

Fixes #667
This commit is contained in:
Mitchell Hashimoto
2023-10-14 14:02:17 -07:00
parent a75d42b4a5
commit 7167cf9054
2 changed files with 2 additions and 10 deletions

View File

@ -1418,11 +1418,7 @@ fn addCursor(
), screen.cursor.x - 1 };
};
const color = self.config.cursor_color orelse terminal.color.RGB{
.r = 0xFF,
.g = 0xFF,
.b = 0xFF,
};
const color = self.config.cursor_color orelse self.config.foreground;
const sprite: font.Sprite = switch (cursor_style) {
.block => .cursor_rect,

View File

@ -869,11 +869,7 @@ fn addCursor(
), screen.cursor.x - 1 };
};
const color = self.config.cursor_color orelse terminal.color.RGB{
.r = 0xFF,
.g = 0xFF,
.b = 0xFF,
};
const color = self.config.cursor_color orelse self.config.foreground;
const sprite: font.Sprite = switch (cursor_style) {
.block => .cursor_rect,