mirror of
https://github.com/jarun/nnn.git
synced 2025-04-15 09:56:32 +00:00
When handling SEL_NEW pass path
to abspath
call
If `path` is not provided to `abspath`, later will do `getcwd`, and it's result will differ from `path`. This causes problem that when creating directory inside path reached with symlink, subsequent call to get_cwd_entry does not recognize newly created path as subpath of current path, thus not selecting newly created element.
This commit is contained in:
parent
744a7554ef
commit
bca441e00f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue