mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Merge branch '2776_dir_selection_fix'
* 2776_dir_selection_fix: Ticket #2776: file selection reset after cd to ".." in remote VFS.
This commit is contained in:
commit
e94d15595c
@ -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