nano

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

commit b47d111a3d116bd20d0874e756a1657269ee976c
parent d80ecf020927074a9cc35ccfc41ae92b34abb08c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 11 May 2020 16:18:03 +0200

tweaks: don't use a symbol for other purposes

Diffstat:
Msrc/help.c | 2+-
Msrc/winio.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/help.c b/src/help.c @@ -164,7 +164,7 @@ void show_help(void) bottombars(MHELP); /* Extract the title from the head of the help text. */ - length = break_line(help_text, MAX_BUF_SIZE, TRUE); + length = break_line(help_text, HIGHEST_POSITIVE, TRUE); title = measured_copy(help_text, length); titlebar(title); diff --git a/src/winio.c b/src/winio.c @@ -198,11 +198,11 @@ void read_keys_from(WINDOW *win) return; } - /* If we've failed to get a keycode MAX_BUF_SIZE times in a row, + /* When we've failed to get a keycode over a hundred 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 == MAX_BUF_SIZE) + if (input == ERR && ++errcount == 123) die(_("Too many errors from stdin\n")); }