m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Fix tcell renderer

Fix #2954
This commit is contained in:
Junegunn Choi
2022-09-26 14:09:38 +09:00
parent f931e53890
commit 731daf0f37

View File

@@ -20,6 +20,10 @@ func HasFullscreenRenderer() bool {
} }
func asTcellColor(color Color) tcell.Color { func asTcellColor(color Color) tcell.Color {
if color == colDefault {
return tcell.ColorDefault
}
value := uint64(tcell.ColorValid) + uint64(color) value := uint64(tcell.ColorValid) + uint64(color)
if color.is24() { if color.is24() {
value = value | uint64(tcell.ColorIsRGB) value = value | uint64(tcell.ColorIsRGB)