summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses/gui-curses-main.c')
-rw-r--r--src/gui/curses/gui-curses-main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index 44ba81ec5..46511ad87 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -349,6 +349,17 @@ gui_main_end (int clean_exit)
{
if (clean_exit)
{
+ /*
+ * final refreshs, to see messages just before exiting
+ * (if we are upgrading, don't refresh anything!)
+ */
+ if (!weechat_upgrading)
+ {
+ gui_main_refreshs ();
+ if (gui_window_refresh_needed)
+ gui_main_refreshs ();
+ }
+
/* remove bar items and bars */
gui_bar_item_end ();
gui_bar_free_all ();