Commit a2038a9b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This fixes a secondary part of https://savannah.gnu.org/bugs/?51124.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment