From 9ac272a2877029475137a099ac69f8350cec3e6e Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 11 Aug 2019 19:28:32 +0300 Subject: [PATCH] (setup_panels): use WST_VISIBLE to set up hint bar. Signed-off-by: Andrew Borodin --- src/filemanager/layout.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c index 7fc931235..be4227d18 100644 --- a/src/filemanager/layout.c +++ b/src/filemanager/layout.c @@ -865,11 +865,8 @@ setup_panels (void) panels[1].widget->cols); } - if (mc_global.message_visible) - widget_set_size (WIDGET (the_hint), height + start_y, mw->x, 1, mw->cols); - else - /* make invisible */ - widget_set_size (WIDGET (the_hint), 0, 0, 0, 0); + widget_set_size (WIDGET (the_hint), height + start_y, mw->x, 1, mw->cols); + widget_set_visibility (WIDGET (the_hint), mc_global.message_visible); /* Output window */ if (mc_global.tty.console_flag != '\0' && output_lines != 0)