Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redraw pager on new selection when nothing was selected previously #9833

Conversation

simonborje
Copy link
Contributor

Description

An attempt to solve the issue described in #9812.

With this change the select_next_completion_in_direction function will no longer return early in the case when nothing was previously selected. The early return would skip updating the suggested_row_start variable, leading to the pager not scrolling down to show the new selection when using the "Up" arrow to wrap to the last item.

This change seems to solve the issue based on manual testing.

Please let me know if anything under "TODO" should be updated.

Fixes issue #9812

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@ridiculousfish ridiculousfish merged commit 71c320c into fish-shell:master Jun 4, 2023
6 of 7 checks passed
@ridiculousfish
Copy link
Member

Looks great - thank you! This is quite the fix especially for a first-time contributor. Amazing!

ridiculousfish added a commit that referenced this pull request Jun 4, 2023
Also relevant is #9812
@NextAlone
Copy link
Contributor

Congratulations!

@faho faho added the bug Something that's not working as intended label Jun 5, 2023
@faho faho added this to the fish 3.6.2 milestone Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that's not working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants