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:
Andrew Borodin 2012-04-16 12:43:16 +04:00
commit e94d15595c

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