src/nnn.c | 2 +- diff --git a/src/nnn.c b/src/nnn.c index 8ba6c0de8ae338c89f79f0caf3fec84ebaac1a33..8b64f78bc971e226052ed7a1eaf467facf6c1bfa 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4566,7 +4566,7 @@ printwarn(NULL); return FALSE; } /* Copy the new dir path to open it in smart context */ - outdir = realpath(".", NULL); + outdir = getcwd(NULL, 0); x_to = TRUE; } }