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:
Andrew Borodin 2012-04-15 14:31:53 +04:00
parent 81a8c428ec
commit 638cac9be3

View File

@ -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;
}
/* --------------------------------------------------------------------------------------------- */