input: give an appropriate message when there are too many errors

This fixes a secondary part of https://savannah.gnu.org/bugs/?51124.
master
Benno Schulenberg 2017-05-31 15:11:11 +02:00
parent a969adf804
commit a2038a9b2b
1 changed files with 1 additions and 1 deletions

View File

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