mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 15:04:05 +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;
|
bool is_short = false;
|
||||||
if (is_stderr) {
|
if (is_stderr) {
|
||||||
// Interactive mode help to screen - only print synopsis if the rest won't fit.
|
// 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();
|
screen_height = common_get_height();
|
||||||
lines = count_char(str, L'\n');
|
my_lines = count_char(str, L'\n');
|
||||||
if (!shell_is_interactive() || (lines > 2 * screen_height / 3)) {
|
if (!shell_is_interactive() || (my_lines > 2 * screen_height / 3)) {
|
||||||
wchar_t *pos;
|
wchar_t *pos;
|
||||||
int cut = 0;
|
int cut = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue