From: NRK Date: Mon, 1 Nov 2021 07:28:49 +0000 (+0600) Subject: plugin: fzopen: print full path for picker mode X-Git-Tag: v4.4~22^2~3 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a47376ee04f292a3c678a39274835b0e3e2ec805;p=nnn.git plugin: fzopen: print full path for picker mode Closes: https://github.com/mcchrish/nnn.vim/issues/133 --- diff --git a/plugins/fzopen b/plugins/fzopen index 52abc87d..d26e96e3 100755 --- a/plugins/fzopen +++ b/plugins/fzopen @@ -42,9 +42,9 @@ fi if [ "$3" ]; then if [ "$entry" ]; then if [ "-" = "$3" ]; then - printf "%s\n" "$entry" + printf "%s\n" "${2}/$entry" else - printf "%s\n" "$entry" > "$3" + printf "%s\n" "${2}/$entry" > "$3" fi # Tell `nnn` to clear its internal selection