mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +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.
|
// Ensure our suggested row start is not too early before it.
|
||||||
if self.suggested_row_start + visible_row_count <= row_containing_selection {
|
if self.suggested_row_start + visible_row_count <= row_containing_selection {
|
||||||
// The user moved south past the bottom completion.
|
// 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
|
self.fully_disclosed = true; // perform disclosure
|
||||||
} else {
|
} else {
|
||||||
// Scroll
|
// Scroll
|
||||||
|
|
Loading…
Reference in a new issue