summary refs log tree commit diff stats
path: root/widgets
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 /widgets
parent24dfc4712647008a89d930b269b085c6c3f2fb2d (diff)
downloadaerc-9e3b602ce7317c18a73d228fda7eb476b18a8988.tar.gz
Fix nil dereference on rapidly cycling folders
Diffstat (limited to 'widgets')
-rw-r--r--widgets/dirlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index d66ae1f..58108ff 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()