Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit a512146

Browse files
committed
Selection in treeviews was displayed incorrectly. It now uses Reverse only
1 parent dbe352c commit a512146

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tview/treeview.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -801,11 +801,7 @@ func (t *TreeView) Draw(screen tcell.Screen) bool {
801801
if node.textX+bulletCharacterWidth < width {
802802
style := tcell.StyleDefault.Foreground(node.color)
803803
if node == t.currentNode {
804-
if IsVtxxx {
805-
style = tcell.StyleDefault.Reverse(true)
806-
} else {
807-
style = tcell.StyleDefault.Background(node.color).Foreground(t.backgroundColor)
808-
}
804+
style = tcell.StyleDefault.Reverse(true)
809805
}
810806
if node.blinking {
811807
style = style.Blink(true)

0 commit comments

Comments
 (0)