help: skip the leading blank line when the terminal is very flat

On very flat terminals, a leading blank line could lead to ^G showing
just a blank row instead of the first line of the help text.
master
Benno Schulenberg 2021-11-17 12:21:41 +01:00
parent 3dfd798d51
commit 0afe38d81a
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ void wrap_help_text_into_buffer(void)
make_new_buffer();
/* Ensure there is a blank line at the top of the text, for esthetics. */
if (ISSET(MINIBAR) || !ISSET(EMPTY_LINE)) {
if ((ISSET(MINIBAR) || !ISSET(EMPTY_LINE)) && LINES > 6) {
openfile->current->data = mallocstrcpy(openfile->current->data, " ");
openfile->current->next = make_new_node(openfile->current);
openfile->current = openfile->current->next;