Merge pull request #1399 from leafgarland/use-background-for-cursor-text-default

Default to background colour for cursor-text
This commit is contained in:
Mitchell Hashimoto
2024-01-28 09:03:43 -08:00
committed by GitHub
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|
.{ txt.r, txt.g, txt.b, 255 }
else
.{ 0, 0, 0, 255 };
.{ self.background_color.r, self.background_color.g, self.background_color.b, 255 };
}
self.cells.appendAssumeCapacity(cell.*);

View File

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