cmd/ncdu: fix add keybinding to rescan filesystem

This commit is contained in:
eNV25 2023-08-30 15:29:46 +02:00 committed by GitHub
parent a603efeaf4
commit 11eeaaf792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -906,6 +906,7 @@ func (u *UI) scan() (chan *scan.Dir, chan error, chan struct{}) {
if cancel := u.cancel; cancel != nil { if cancel := u.cancel; cancel != nil {
cancel() cancel()
} }
u.listing = true
ctx := context.Background() ctx := context.Background()
ctx, u.cancel = context.WithCancel(ctx) ctx, u.cancel = context.WithCancel(ctx)
return scan.Scan(ctx, u.f) return scan.Scan(ctx, u.f)