added case to detect empty directory when displaying hidden files

This commit is contained in:
Nathan Sketch 2021-04-15 10:20:30 -04:00
parent f96db5cd94
commit 054394f6d6
1 changed files with 4 additions and 0 deletions

4
shfm
View File

@ -140,6 +140,10 @@ list_print() {
1) [ -e "$1" ] || set -- empty
esac
case $1$2$3$# in
"...*3") [ -n "$hidden" ] && set -- empty
esac
case $hist in
2) # redraw after cmd run
shift "$((y > y2 ? y - y2 : 0))"