about summary refs log tree commit diff stats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 58108ff..eb79bc4 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -109,8 +109,7 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
 		}
 		style := tcell.StyleDefault
 		if name == dirlist.selected {
-			style = style.Background(tcell.ColorWhite).
-				Foreground(tcell.ColorBlack)
+			style = style.Reverse(true)
 		}
 		ctx.Fill(0, row, ctx.Width(), 1, ' ', style)
 		ctx.Printf(0, row, style, "%s", name)