mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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));
|
||||
} else
|
||||
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
|
||||
/* Default behavior */
|
||||
repaint_file (panel, panel->selected, 0, STATUS, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user