mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #788] [CLOSED] fix: set wrap width on resize for text buffer renderables #1565
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/788
Author: @cjroth
Created: 3/7/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
7f987e3fix: set wrap width on resize for text buffer renderables📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
packages/core/src/renderables/TextBufferRenderable.ts(+3 -0)📄 Description
Summary
When
wrapModeis enabled ("char"or"word") and aTextBufferRenderableis resized, the wrap width was not being updated inonResize(). This caused text to retain the old wrap width after a container resize.The fix adds the same
setWrapWidthcall that already exists in:afterSetup, line ~94)wrapModesetter (line ~283)Both use the identical guard pattern:
if (this._wrapMode !== "none" && width > 0).Changes
packages/core/src/renderables/TextBufferRenderable.ts: Callthis.textBufferView.setWrapWidth(width)inonResize()when wrap mode is active🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.