Ticket #2056: Don't propose ".." as a dirname.

Don't propose ".." as a dirname using mkdir command with automatic name
filling enabled.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Francesco Cosoleto 2010-02-16 02:53:55 +01:00 committed by Andrew Borodin
parent 7ca06cb523
commit fc3c32f66e

View File

@ -407,7 +407,7 @@ mkdir_cmd (void)
const char *name = ""; const char *name = "";
/* If 'on' then automatically fills name with current selected item name */ /* If 'on' then automatically fills name with current selected item name */
if (auto_fill_mkdir_name) if (auto_fill_mkdir_name && strcmp (selection (current_panel)->fname, "..") != 0)
name = selection (current_panel)->fname; name = selection (current_panel)->fname;
dir = dir =