minibar: stay out of sight when the terminal has just one row
When there is just one row, the user wants to see text on this row,
not a bar with some meta info.
This fixes https://savannah.gnu.org/bugs/?60508.
Bug existed since version 5.5, since the minibar was introduced
with commit d31cc373
.
master
parent
02df950240
commit
eb3cc3a32d
|
@ -2004,7 +2004,7 @@ bool write_file(const char *name, FILE *thefile, bool tmp,
|
|||
}
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (ISSET(MINIBAR) && fullbuffer && !tmp)
|
||||
if (ISSET(MINIBAR) && LINES > 1 && fullbuffer && !tmp)
|
||||
report_size = TRUE;
|
||||
else
|
||||
#endif
|
||||
|
|
|
@ -2501,7 +2501,7 @@ int main(int argc, char **argv)
|
|||
bottombars(MMAIN);
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (ISSET(MINIBAR) && lastmessage < REMARK)
|
||||
if (ISSET(MINIBAR) && LINES > 1 && lastmessage < REMARK)
|
||||
minibar();
|
||||
else
|
||||
#endif
|
||||
|
|
|
@ -189,7 +189,7 @@ void read_keys_from(WINDOW *win)
|
|||
curs_set(1);
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (currmenu == MMAIN && ISSET(MINIBAR) && lastmessage > HUSH &&
|
||||
if (currmenu == MMAIN && ISSET(MINIBAR) && LINES > 1 && lastmessage > HUSH &&
|
||||
lastmessage != INFO && lastmessage < ALERT) {
|
||||
timed = TRUE;
|
||||
halfdelay(ISSET(QUICK_BLANK) ? 8 : 15);
|
||||
|
|
Loading…
Reference in New Issue