mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
Rename "lines" for netbsd's benefit
Netbsd's curses does a bit of a landgrab, and takes the names "lines" and "newline" and a few others for itself.
This commit is contained in:
parent
a615151d91
commit
aaee5dd32d
1 changed files with 3 additions and 3 deletions
|
@ -200,11 +200,11 @@ void builtin_print_help(parser_t &parser, io_streams_t &streams, const wchar_t *
|
|||
bool is_short = false;
|
||||
if (is_stderr) {
|
||||
// Interactive mode help to screen - only print synopsis if the rest won't fit.
|
||||
int screen_height, lines;
|
||||
int screen_height, my_lines;
|
||||
|
||||
screen_height = common_get_height();
|
||||
lines = count_char(str, L'\n');
|
||||
if (!shell_is_interactive() || (lines > 2 * screen_height / 3)) {
|
||||
my_lines = count_char(str, L'\n');
|
||||
if (!shell_is_interactive() || (my_lines > 2 * screen_height / 3)) {
|
||||
wchar_t *pos;
|
||||
int cut = 0;
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue