mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
Scroll down to reveal the selected item after expanding pager
This commit is contained in:
committed by
Johannes Altmanninger
parent
47aa79813d
commit
d51ecb7fb3
@@ -798,7 +798,10 @@ pub fn select_next_completion_in_direction(
|
|||||||
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user