From c45e1095150ec77a2b72bd9fce96678fe5cce514 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 17 Jun 2013 16:16:45 +0400 Subject: [PATCH] Fix draw of tree mini-status. Signed-off-by: Andrew Borodin --- src/filemanager/tree.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/filemanager/tree.c b/src/filemanager/tree.c index 91e813a69..544ff82d5 100644 --- a/src/filemanager/tree.c +++ b/src/filemanager/tree.c @@ -1173,11 +1173,16 @@ tree_frame (WDialog * h, WTree * tree) tty_printf (" %s ", title); if (panels_options.show_mini_info) - widget_move (w, tlines (tree) + 1, 0); - tty_print_alt_char (ACS_LTEE, FALSE); - widget_move (w, tlines (tree) + 1, w->cols - 1); - tty_print_alt_char (ACS_RTEE, FALSE); - tty_draw_hline (w->y + tlines (tree) + 1, w->x + 1, ACS_HLINE, w->cols - 2); + { + int y; + + y = w->lines - 3; + widget_move (w, y, 0); + tty_print_alt_char (ACS_LTEE, FALSE); + widget_move (w, y, w->cols - 1); + tty_print_alt_char (ACS_RTEE, FALSE); + tty_draw_hline (w->y + y, w->x + 1, ACS_HLINE, w->cols - 2); + } } }