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>
Этот коммит содержится в:
родитель
7ca06cb523
Коммит
fc3c32f66e
@ -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 =
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user