files: make better use of the last row when there are many completions
Put the "(more)" not in the first column of the last row but in the last column.
Этот коммит содержится в:
родитель
c7356c2d85
Коммит
24740815f6
@ -2593,7 +2593,8 @@ char *input_tab(char *buf, size_t *place, void (*refresh_func)(void), bool *list
|
||||
|
||||
wmove(edit, row, (longest_name + 2) * (match % ncols));
|
||||
|
||||
if (row == editwinrows - 1 && num_matches - match > ncols) {
|
||||
if (row == editwinrows - 1 && (match + 1) % ncols == 0 &&
|
||||
match + 1 < num_matches) {
|
||||
waddstr(edit, _("(more)"));
|
||||
break;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user