mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
src/screen.c (display_mini_info): don't display incorrect info about ".." directory.
This commit is contained in:
parent
fa52c44fcd
commit
72d0a117b6
@ -684,6 +684,12 @@ display_mini_info (WPanel *panel)
|
|||||||
name_trunc (link_target, panel->widget.cols - 5));
|
name_trunc (link_target, panel->widget.cols - 5));
|
||||||
} else
|
} else
|
||||||
tty_printf ("%-*s", panel->widget.cols - 2, _("<readlink failed>"));
|
tty_printf ("%-*s", panel->widget.cols - 2, _("<readlink failed>"));
|
||||||
|
} else if (strcmp (panel->dir.list [panel->selected].fname, "..") == 0) {
|
||||||
|
/* FIXME:
|
||||||
|
* while loading directory (do_load_dir() and do_reload_dir(),
|
||||||
|
* the actual stat info about ".." directory isn't got;
|
||||||
|
* so just don't display incorrect info about ".." directory */
|
||||||
|
tty_printf ("%-*s", panel->widget.cols - 2, _("UP--DIR"));
|
||||||
} else
|
} else
|
||||||
/* Default behavior */
|
/* Default behavior */
|
||||||
repaint_file (panel, panel->selected, 0, STATUS, 1);
|
repaint_file (panel, panel->selected, 0, STATUS, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user