Skip to content

fix(examples): prevent duplicate content on window resize #1580

Open
VaibhavVermaa16 wants to merge 1 commit intocharmbracelet:mainfrom
VaibhavVermaa16:fix/issue_1567
Open

fix(examples): prevent duplicate content on window resize #1580
VaibhavVermaa16 wants to merge 1 commit intocharmbracelet:mainfrom
VaibhavVermaa16:fix/issue_1567

Conversation

@VaibhavVermaa16
Copy link

@VaibhavVermaa16 VaibhavVermaa16 commented Feb 8, 2026

Fixes content duplication issue when terminal window is resized by handling WindowSizeMsg before passing to child components. Previously, both the viewport and textarea processed resize events independently, causing viewport state to become inconsistent with rendered content.

Fixes #1567

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

…mple

Fixes content duplication issue when terminal window is resized by
handling WindowSizeMsg before passing to child components. Previously,
both the viewport and textarea processed resize events independently,
causing viewport state to become inconsistent with rendered content.

Fixes charmbracelet#1567
@aymanbagabas
Copy link
Member

Hi @VaibhavVermaa16, thank you for fixing this issue. Could you please backport this to the v2-exp branch?

@VaibhavVermaa16
Copy link
Author

Done, I've backported this fix to v2-exp branch and opened a new PR: #1581

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.

Auto generate duplicated content after resized window size

2 participants

Comments