Exit ncdu when losing input

Ought to fix https://dev.yorhel.nl/ncdu/bug/115
This commit is contained in:
Yorhel 2018-06-13 17:16:02 +02:00
parent d15fe8d08e
commit cbe24d6c8f

View file

@ -103,6 +103,8 @@ int input_handle(int wait) {
}
screen_draw();
}
if(errno == EPIPE || errno == EBADF)
return 1;
return 0;
}