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
parent
3dfd798d51
commit
0afe38d81a
|
@ -325,7 +325,7 @@ void wrap_help_text_into_buffer(void)
|
||||||
make_new_buffer();
|
make_new_buffer();
|
||||||
|
|
||||||
/* Ensure there is a blank line at the top of the text, for esthetics. */
|
/* 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->data = mallocstrcpy(openfile->current->data, " ");
|
||||||
openfile->current->next = make_new_node(openfile->current);
|
openfile->current->next = make_new_node(openfile->current);
|
||||||
openfile->current = openfile->current->next;
|
openfile->current = openfile->current->next;
|
||||||
|
|
Loading…
Reference in New Issue