nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a2038a9b2ba0ae21504442c6f4fbdaeff765781e
parent a969adf804af130b44c0d8d12def5fb915b1c868
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 31 May 2017 15:11:11 +0200

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

This fixes a secondary part of https://savannah.gnu.org/bugs/?51124.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -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) {