mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge pull request #1399 from leafgarland/use-background-for-cursor-text-default
Default to background colour for cursor-text
This commit is contained in:
@ -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.*);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user