Skip to content

Keep PreparedTextArea's wrapped document when width and tab size match - #107

Merged
trissim merged 1 commit into
mainfrom
fix/native-prepared-wrapping-equality-20261007
Oct 7, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/native-prepared-wrapping-equality-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

When PreparedTextArea finished loading, it always prepared a new wrapped document, even if the existing one already had the same document, wrap width and tab width. It now checks for a match, refreshes the size and scrollbars, and returns without preparing again. If the scrollbar refresh changes the wrap width, the loop continues and prepares at the new width. One test is added in test_prepared_document.py.

@trissim
trissim marked this pull request as ready for review October 7, 2026 23:18
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:18
@trissim
trissim merged commit 428dfec into main Oct 7, 2026
3 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim trissim changed the title Retain matching PreparedTextArea wrapping Keep PreparedTextArea's wrapped document when width and tab size match Oct 11, 2026
@trissim
trissim deleted the fix/native-prepared-wrapping-equality-20261007 branch October 11, 2026 20:05
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.

2 participants