]> Sergey Matveev's repositories - nnn.git/blobdiff - src/nnn.c
When handling SEL_NEW pass `path` to `abspath` call
[nnn.git] / src / nnn.c
index 5920797f1faf1e85fbd50100160ea1b6aebd6fc2..6c90377f9bbffa252233f71369809f5a7e5c62e8 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7801,7 +7801,7 @@ nochange:
                        }
 
                        if (!(r == 's' || r == 'h')) {
-                               tmp = abspath(tmp, NULL, newpath);
+                               tmp = abspath(tmp, path, newpath);
                                if (!tmp) {
                                        printwarn(&presel);
                                        goto nochange;