diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-15 01:48:36 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-15 01:48:36 -0400 |
commit | 9e3b602ce7317c18a73d228fda7eb476b18a8988 (patch) | |
tree | 4792d1bcfbfec3cab23f839bc12c9023d1d48c9e /widgets/dirlist.go | |
parent | 24dfc4712647008a89d930b269b085c6c3f2fb2d (diff) | |
download | aerc-9e3b602ce7317c18a73d228fda7eb476b18a8988.tar.gz |
Fix nil dereference on rapidly cycling folders
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r-- | widgets/dirlist.go | 2 |
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() |