antonmedv / walk

Terminal file manager
MIT License
3.29k stars 95 forks source link

fix: resolve panic on opening empty directories #148

Closed tikinang closed 5 months ago

tikinang commented 5 months ago

If one tries to open empty directory, code panics.

Steps to replicate:

go install github.com/antonmedv/walk@v1.9.0
mkdir walktest
walk

Entering empty dir walktest in tui causes panic.

tikinang commented 5 months ago

This wrap shortcut condition, seems to fix it. TUI correctly shows "no files" message now.