mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix #876: fzcd - go to dir and select file
This commit is contained in:
parent
1571ea2b35
commit
e8577baab2
|
@ -14,9 +14,7 @@ else
|
|||
fi
|
||||
|
||||
if [ -n "$sel" ]; then
|
||||
if ! [ -d "$sel" ]; then
|
||||
sel=$(dirname "$sel")
|
||||
elif [ "$sel" = "." ]; then
|
||||
if [ "$sel" = "." ] || (! [ -d "$sel" ] && ! [ -f "$sel" ]); then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue