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

status: Scroll current item into view when selection changes #828

Merged
merged 1 commit into from
May 26, 2018

Conversation

PetrGlad
Copy link
Contributor

When moving selection up/down with keyboard in a long file list the
selected item goes out of view and there's no way to tell which file the
current diff corresponds to.
This change ensures that latest selected item is always visible.
The horizontal scrolling is preserved as it was implemented before.

See also issue #494 and pull request #178 for related discussion.

Signed-off-by: Petr Gladkikh petrglad@gmail.com

When moving selection up/down with keyboard in a long file list the
selected item goes out of view and there's no way to tell what file the
current diff corresponds to.
This change ensures that latest selected item is always visible.
The horizontal scrolling is preserved as it was implemented before.

See also issue git-cola#494 and pull request git-cola#178 for related discussion.

Signed-off-by: Petr Gladkikh <petrglad@gmail.com>
@PetrGlad
Copy link
Contributor Author

The build fails on 2.6, should I fix this? How?

davvid added a commit to davvid/git-cola that referenced this pull request May 26, 2018
* PetrGlad/scroll-into-view:
  status: Scroll current item into view when selection changes

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid
Copy link
Member

davvid commented May 26, 2018

Nicely done. Thanks!

@davvid davvid merged commit af51b9f into git-cola:master May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants