demo_nanosleep_abstime_ns: fix test sense, swallow input #782

pull/783/head
nick black 4 years ago
parent 4b893164e1
commit 9ff805e754
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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){

Loading…
Cancel
Save