diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index 9d6dc22b5..aa73d486f 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -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; } /* --------------------------------------------------------------------------------------------- */