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

Don't scroll terminal search result if within viewport #2385

Merged
merged 2 commits into from Aug 16, 2019

Conversation

lramos15
Copy link
Contributor

This allows search to further better match the behavior of other terminals. We were constantly attempting to center the search result even if it was within the viewport which would cause weird behaviors. This prevents the scrolling behavior if the current result is within the terminal viewport. Fixes #2352 and microsoft/vscode#78281

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following this up @lramos15 🙂

@Tyriar Tyriar added this to the 4.0.0 milestone Aug 16, 2019
@Tyriar Tyriar self-assigned this Aug 16, 2019
@Tyriar Tyriar merged commit 54d2157 into xtermjs:master Aug 16, 2019
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.

Terminal Should not scroll when search results are in view
2 participants