summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tui/tcell.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go
index a873378d..85ef1dd8 100644
--- a/src/tui/tcell.go
+++ b/src/tui/tcell.go
@@ -20,6 +20,10 @@ func HasFullscreenRenderer() bool {
}
func asTcellColor(color Color) tcell.Color {
+ if color == colDefault {
+ return tcell.ColorDefault
+ }
+
value := uint64(tcell.ColorValid) + uint64(color)
if color.is24() {
value = value | uint64(tcell.ColorIsRGB)