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,11 +14,9 @@ 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
|
||||||
|
|
||||||
# Check if selected path returned
|
# Check if selected path returned
|
||||||
# by fzf command is absolute
|
# by fzf command is absolute
|
||||||
|
|
Loading…
Reference in a new issue