aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/dirlist.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 6a8df2e9..83001b7b 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -149,12 +149,13 @@ func (dirlist *DirectoryList) Select(name string) {
ctx, cancel := context.WithCancel(context.Background())
dirlist.skipSelect = ctx
dirlist.skipSelectCancel = cancel
+ delay := dirlist.UiConfig(name).DirListDelay
go func(ctx context.Context) {
defer logging.PanicHandler()
select {
- case <-time.After(dirlist.UiConfig(name).DirListDelay):
+ case <-time.After(delay):
newStore := true
for _, s := range dirlist.store.List() {
if s == dirlist.selecting {