nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e8577baab2a407b7c56256025f48073d93e3e122
parent 1571ea2b35f4944f8515ae7647181bb206e10113
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 14 Mar 2021 12:19:40 +0530

Fix #876: fzcd - go to dir and select file

Diffstat:
Mplugins/fzcd | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/fzcd b/plugins/fzcd @@ -14,11 +14,9 @@ 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 + fi # Check if selected path returned # by fzf command is absolute