From 6ea64288bc7199fa037f9fbcb9bf748743942f3d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 9 Nov 2019 03:47:49 +0530 Subject: [PATCH] Fix #379 --- plugins/fzcd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fzcd b/plugins/fzcd index 443ac2da..a75d5587 100755 --- a/plugins/fzcd +++ b/plugins/fzcd @@ -26,7 +26,7 @@ fi if [ "$?" -eq "0" ]; then case "$(file -bi "$sel")" in *directory*) ;; - *) sel=$(dirname $sel) ;; + *) sel=$(dirname "$sel") ;; esac nnn_cd "$PWD/$sel" fi