tweaks: don't use a symbol for other purposes

This commit is contained in:
Benno Schulenberg 2020-05-11 16:18:03 +02:00
parent d80ecf0209
commit b47d111a3d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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"));
}