mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
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 <aborodin@vmail.ru>
This commit is contained in:
parent
33b7a382ea
commit
d2a9152cec
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user