mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 13:19:43 +03:00
tweaks: don't use a symbol for other purposes
This commit is contained in:
parent
d80ecf0209
commit
b47d111a3d
@ -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);
|
||||
|
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user