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.
}
if (!(r == 's' || r == 'h')) {
- tmp = abspath(tmp, NULL, newpath);
+ tmp = abspath(tmp, path, newpath);
if (!tmp) {
printwarn(&presel);
goto nochange;