mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Scroll down to reveal the selected item after expanding pager
This commit is contained in:
parent
47aa79813d
commit
d51ecb7fb3
1 changed files with 4 additions and 1 deletions
|
@ -798,7 +798,10 @@ impl Pager {
|
|||
// Ensure our suggested row start is not too early before it.
|
||||
if self.suggested_row_start + visible_row_count <= row_containing_selection {
|
||||
// The user moved south past the bottom completion.
|
||||
if !self.fully_disclosed && rendering.remaining_to_disclose > 0 {
|
||||
if matches!(direction, SelectionMotion::South | SelectionMotion::East)
|
||||
&& !self.fully_disclosed
|
||||
&& rendering.remaining_to_disclose > 0
|
||||
{
|
||||
self.fully_disclosed = true; // perform disclosure
|
||||
} else {
|
||||
// Scroll
|
||||
|
|
Loading…
Reference in a new issue