From 72d0a117b6ca0a9df039b36dfa3246f8dbe702ed Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 15 Mar 2009 13:08:06 +0300 Subject: [PATCH] src/screen.c (display_mini_info): don't display incorrect info about ".." directory. --- src/screen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/screen.c b/src/screen.c index d200ac34f..cc51d2bdb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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, _("")); + } 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);