From 653961523c7b14b8cd35da37043eeaa0a6896ebd Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 23 Jan 2021 20:35:11 +0300 Subject: [PATCH] Ticket #4182: fix command line update. (setup_cmdline): don't update command line if it's invisible. Signed-off-by: Andrew Borodin --- src/filemanager/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c index d7e9c20c9..32b713381 100644 --- a/src/filemanager/layout.c +++ b/src/filemanager/layout.c @@ -956,7 +956,6 @@ panels_split_less (void) /* --------------------------------------------------------------------------------------------- */ - void setup_cmdline (void) { @@ -965,6 +964,9 @@ setup_cmdline (void) int y; char *tmp_prompt = (char *) mc_prompt; + if (!command_prompt) + return; + #ifdef ENABLE_SUBSHELL if (mc_global.tty.use_subshell) {