summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-07-25 08:41:17 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-25 18:15:49 -0400
commit0950e39f538610172858a5e3b7582a7f5cb1fd64 (patch)
tree7641e8730b73356625d13dfb85be6acd1171d1b3
parentee5b537d538baf38450a2ae655dee53a49aa9824 (diff)
downloadaerc-0950e39f538610172858a5e3b7582a7f5cb1fd64.tar.gz
Show the directory being selected in gray
-rw-r--r--widgets/dirlist.go3
1 files changed, 3 insertions, 0 deletions
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)