input: give an appropriate message when there are too many errors
This fixes a secondary part of https://savannah.gnu.org/bugs/?51124.master
parent
a969adf804
commit
a2038a9b2b
|
@ -142,7 +142,7 @@ void get_key_buffer(WINDOW *win)
|
|||
* check if errno is set to EIO ("Input/output error") and die in
|
||||
* that case, but it's not always set properly. Argh. */
|
||||
if (++errcount == MAX_BUF_SIZE)
|
||||
handle_hupterm(0);
|
||||
die(_("Too many errors from stdin"));
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (the_window_resized) {
|
||||
|
|
Loading…
Reference in New Issue