mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-28 21:29:47 +03:00
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.
This commit is contained in:
parent
3dfd798d51
commit
0afe38d81a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user