summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index ef9d538..e8c0935 100644
--- a/util.c
+++ b/util.c
@@ -2,6 +2,8 @@
#include "util.h"
+#include "ncurses.h"
+
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -42,6 +44,7 @@ assert(int cond, const char *file, int line, const char *condstr)
{
if (cond) return;
+ endwin();
fprintf(stderr, "Assertion failed %s:%i (%s)\n", file, line, condstr);
exit(1);
}