mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +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
|
fi
|
||||||
|
|
||||||
if [ -n "$sel" ]; then
|
if [ -n "$sel" ]; then
|
||||||
if ! [ -d "$sel" ]; then
|
if [ "$sel" = "." ] || (! [ -d "$sel" ] && ! [ -f "$sel" ]); then
|
||||||
sel=$(dirname "$sel")
|
|
||||||
elif [ "$sel" = "." ]; then
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue