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

terminal: hyperlink state for cursor needs to be preserved on resize #2131

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Aug 21, 2024

Fixes #2130

When a screen is resized, the pages are generally reallocated. This causes the cursor hyperlink state to be lost and ultimately the hyperlink ref count is off by one.

The unit test in this commit showcases the issue very clearly. And you can see we do this logic already for styles. We never copied it over for hyperlinks.

When a screen is resized, the pages are generally reallocated. This
causes the cursor hyperlink state to be lost and ultimately the
hyperlink ref count is off by one.

The unit test in this commit showcases the issue very clearly. And you
can see we do this logic already for styles. We never copied it over for
hyperlinks.
@mitchellh mitchellh merged commit 70bf6e7 into main Aug 22, 2024
36 checks passed
@mitchellh mitchellh deleted the osc8-resize branch August 22, 2024 13:36
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.

hyperlink state corruption on resize
1 participant