aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-15 01:48:36 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-15 01:48:36 -0400
commit9e3b602ce7317c18a73d228fda7eb476b18a8988 (patch)
tree4792d1bcfbfec3cab23f839bc12c9023d1d48c9e
parent24dfc4712647008a89d930b269b085c6c3f2fb2d (diff)
downloadaerc-9e3b602ce7317c18a73d228fda7eb476b18a8988.tar.gz
Fix nil dereference on rapidly cycling folders
-rw-r--r--widgets/dirlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index d66ae1f5..58108ff5 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -65,7 +65,7 @@ func (dirlist *DirectoryList) Select(name string) {
switch msg.(type) {
case *types.Error:
dirlist.selecting = ""
- default:
+ case *types.Done:
dirlist.selected = dirlist.selecting
}
dirlist.Invalidate()