diff --git a/src/winio.c b/src/winio.c index 0e9ecc1e..0cb35466 100644 --- a/src/winio.c +++ b/src/winio.c @@ -233,11 +233,11 @@ void read_keys_from(WINDOW *win) } } #endif - /* When we've failed to get a keycode over a hundred times in a row, + /* When we've failed to get a keycode millions of times in a row, * assume our input source is gone and die gracefully. We could * check if errno is set to EIO ("Input/output error") and die in * that case, but it's not always set properly. Argh. */ - if (input == ERR && ++errcount == 123) + if (input == ERR && ++errcount == 12345678) die(_("Too many errors from stdin\n")); }