From 9ff805e7544c9a60517913bd2e64ce862001f7c3 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 10 Jul 2020 12:38:21 -0400 Subject: [PATCH] demo_nanosleep_abstime_ns: fix test sense, swallow input #782 --- src/demo/hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/hud.c b/src/demo/hud.c index 71d810977..f8cf9736c 100644 --- a/src/demo/hud.c +++ b/src/demo/hud.c @@ -481,7 +481,7 @@ demo_nanosleep_abstime_ns(struct notcurses* nc, uint64_t deadline){ // throw away any input we receive. if it was for the menu or HUD, it was // already dispatched internally to demo_getc(). char32_t id; - if((id = demo_getc(nc, &fsleep, &ni)) > 0){ + if((id = demo_getc(nc, &fsleep, &ni)) < 0){ return -1; } if(hud){