mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
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:
parent
7ca06cb523
commit
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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user