summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index bb90e36..b90a9bf 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -74,11 +74,11 @@ void exit_calcurse(int status)
{
int was_interactive;
- ui_calendar_stop_date_thread();
- io_stop_psave_thread();
-
if (ui_mode == UI_CURSES) {
notify_stop_main_thread();
+ ui_calendar_stop_date_thread();
+ io_stop_psave_thread();
+
clear();
wins_refresh();
endwin();