From a47376ee04f292a3c678a39274835b0e3e2ec805 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 1 Nov 2021 13:28:49 +0600 Subject: [PATCH] plugin: fzopen: print full path for picker mode Closes: https://github.com/mcchrish/nnn.vim/issues/133 --- plugins/fzopen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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