]> Sergey Matveev's repositories - nnn.git/blobdiff - src/nnn.c
Merge pull request #1770 from 7ocb/pass-path-to-abspath
[nnn.git] / src / nnn.c
index 07dcba608b4c16cfa21e9955b1eb691ac0c83a23..dbc64197fd50e5bfa15e0313492f6dc1a865ca73 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7815,7 +7815,7 @@ nochange:
                        }
 
                        if (!(r == 's' || r == 'h')) {
-                               tmp = abspath(tmp, NULL, newpath);
+                               tmp = abspath(tmp, path, newpath);
                                if (!tmp) {
                                        printwarn(&presel);
                                        goto nochange;