From d2a9152cec8db6d21af77bb91490666a85e48d55 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 6 Mar 2010 11:08:18 +0300 Subject: [PATCH] Ticket #2087: crash in standalone editor and viewer. Don't try update file manager panels if mc runs as standalone editor or viewer. Signed-off-by: Andrew Borodin --- src/execute.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/execute.c b/src/execute.c index e8f9ad388..16c0898e2 100644 --- a/src/execute.c +++ b/src/execute.c @@ -304,8 +304,10 @@ toggle_panels (void) } #endif /* HAVE_SUBSHELL_SUPPORT */ - update_panels (UP_OPTIMIZE, UP_KEEPSEL); - update_xterm_title_path (); + if ((view_one_file == NULL) && (edit_one_file == NULL)) { + update_panels (UP_OPTIMIZE, UP_KEEPSEL); + update_xterm_title_path (); + } repaint_screen (); }