From 0950e39f538610172858a5e3b7582a7f5cb1fd64 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Thu, 25 Jul 2019 08:41:17 +0100 Subject: [PATCH] Show the directory being selected in gray --- widgets/dirlist.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/dirlist.go b/widgets/dirlist.go index c5e4a0c..0a6113a 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -126,6 +126,9 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) { style := tcell.StyleDefault if name == dirlist.selected { style = style.Reverse(true) + } else if name == dirlist.selecting { + style = style.Reverse(true) + style = style.Foreground(tcell.ColorGray) } ctx.Fill(0, row, ctx.Width(), 1, ' ', style) ctx.Printf(0, row, style, "%s", name)