summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-20 17:09:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-20 17:09:07 +0100
commit7925b2d242513844cb42e4b146994f7b00643f7a (patch)
tree53feb01701ad0dc63081b87343506a82d9a9b526 /src/gui/curses
parent9d96090d7d6fe7841973f10c51710ec505ef034e (diff)
downloadweechat-7925b2d242513844cb42e4b146994f7b00643f7a.zip
Refresh screen when exiting WeeChat (to display messages printed after /quit)
Diffstat (limited to 'src/gui/curses')
-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 ();