mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Don't show "and 1 more rows" in pager if that requires a row
This commit is contained in:
parent
cb480dddf6
commit
ede3d422a0
1 changed files with 7 additions and 0 deletions
|
@ -464,6 +464,13 @@ bool pager_t::completion_try_print(size_t cols, const wcstring &prefix, const co
|
|||
{
|
||||
rendering->remaining_to_disclose = 0;
|
||||
}
|
||||
|
||||
/* If we have only one row remaining to disclose, then squelch the comment row. This prevents us from consuming a line to show "...and 1 more row" */
|
||||
if (! this->fully_disclosed && rendering->remaining_to_disclose == 1)
|
||||
{
|
||||
term_height += 1;
|
||||
rendering->remaining_to_disclose = 0;
|
||||
}
|
||||
|
||||
int pref_tot_width=0;
|
||||
int min_tot_width = 0;
|
||||
|
|
Loading…
Reference in a new issue