mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #2776: file selection reset after cd to ".." in remote VFS.
After cd from directory to ".." in remote VFS, directory selection is
reset (".." is selected instead of the previous directory).
Bug was introduced in c457eaf9b1
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
81a8c428ec
commit
638cac9be3
@ -2988,7 +2988,7 @@ get_parent_dir_name (const char *cwd, const char *lwd)
|
||||
;
|
||||
|
||||
/* return last component */
|
||||
return (*p == PATH_SEP) ? p + 1 : p;
|
||||
return (p != lwd || *p == PATH_SEP) ? p + 1 : p;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user