antonmedv / walk

Terminal file manager
MIT License
3.17k stars 89 forks source link

fix: resolve panic on opening empty directories #148

Closed tikinang closed 2 weeks ago

tikinang commented 3 weeks 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 3 weeks ago

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