browser: with --zero, do not use the bottom row for displaying filenames
Otherwise the prompt bar or status bar could hide the highlighted item.
This addresses the first issue mentioned in commit 03637030
.
master
parent
d19842ed73
commit
b92b9e5cac
|
@ -107,7 +107,7 @@ void read_the_list(const char *path, DIR *dir)
|
||||||
* between columns. */
|
* between columns. */
|
||||||
piles = (COLS + 2) / (longest + 2);
|
piles = (COLS + 2) / (longest + 2);
|
||||||
|
|
||||||
usable_rows = editwinrows;
|
usable_rows = editwinrows - (ISSET(ZERO) && LINES > 1 ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look for needle. If we find it, set selected to its location.
|
/* Look for needle. If we find it, set selected to its location.
|
||||||
|
|
Loading…
Reference in New Issue