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

Clear line cache on terminal resize #2025

Merged
merged 1 commit into from
Apr 27, 2019

Conversation

thebradbain
Copy link
Contributor

@thebradbain thebradbain commented Apr 27, 2019

Hello!

This PR fixes the bug described in #1915, where find next/previous breaks upon resizing the terminal because the line cache was not being cleared.

The fix itself was as simple as listening for the _terminal.onResize() event handler and then clearing out the lines cache via this._destroyLinesCache(), much the same way we already capture and handle the _termina.onCursorMove() event.

Fixes #1915

@Tyriar Tyriar added this to the 3.13.0 milestone Apr 27, 2019
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 @thebradbain, works for me 👍

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.

Search breaks after resizing
2 participants