Default to background color for cursor-text

Previously the default was black which doesn't work so well if the
cursor block is dark.
This commit is contained in:
Leaf Garland
2024-01-28 20:20:40 +13:00
parent 06ff385e0c
commit d1d7665510
2 changed files with 4 additions and 4 deletions

View File

@ -1738,7 +1738,7 @@ fn rebuildCells(
cell.color = if (self.config.cursor_text) |txt| cell.color = if (self.config.cursor_text) |txt|
.{ txt.r, txt.g, txt.b, 255 } .{ txt.r, txt.g, txt.b, 255 }
else else
.{ 0, 0, 0, 255 }; .{ self.background_color.r, self.background_color.g, self.background_color.b, 255 };
} }
self.cells.appendAssumeCapacity(cell.*); self.cells.appendAssumeCapacity(cell.*);

View File

@ -1168,9 +1168,9 @@ pub fn rebuildCells(
cell.b = txt.b; cell.b = txt.b;
cell.a = 255; cell.a = 255;
} else { } else {
cell.r = 0; cell.r = self.background_color.r;
cell.g = 0; cell.g = self.background_color.g;
cell.b = 0; cell.b = self.background_color.b;
cell.a = 255; cell.a = 255;
} }
} }