]> Sergey Matveev's repositories - nnn.git/commitdiff
plugin: fzopen: print full path for picker mode
authorNRK <nrk@disroot.org>
Mon, 1 Nov 2021 07:28:49 +0000 (13:28 +0600)
committerNRK <nrk@disroot.org>
Mon, 1 Nov 2021 07:28:49 +0000 (13:28 +0600)
Closes: https://github.com/mcchrish/nnn.vim/issues/133
plugins/fzopen

index 52abc87d05450eaa8ef2bd71ba0744481e349e5c..d26e96e3785186780d1935adfa9190eeee95ddb8 100755 (executable)
@@ -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