From b67e8327d94b4236ead7d4af3a02ff09ab50a669 Mon Sep 17 00:00:00 2001 From: Kied Llaentenn <32681240+Kiedtl@users.noreply.github.com> Date: Thu, 12 Dec 2019 23:08:35 -0500 Subject: [PATCH] *really* terminate on ctrl-c :) --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index ff7c4a8..e028c11 100644 --- a/main.c +++ b/main.c @@ -58,7 +58,7 @@ main ( int argc, char *argv[] ) // event handling usize err = (usize) tb_peek_event(&e, 5); - if (err != 0) + if (err < 0) continue; if (e.type == TB_EVENT_KEY) @@ -66,7 +66,6 @@ main ( int argc, char *argv[] ) switch (e.key) { case 0x03: - fprintf(stdout, "exiting\n"); cleanup(&buf); exit(0); default: