Skip to content

fix: copied text includes redundant whitespace - #5453

Open
HBcao233 wants to merge 1 commit into
termux:masterfrom
HBcao233:space
Open

HBcao233 wants to merge 1 commit into
termux:masterfrom
HBcao233:space

Conversation

@HBcao233

@HBcao233 HBcao233 commented Nov 25, 2026 •

Copy link
Copy Markdown

This commit addresses issue #2108 where copying multi-line selections resulted in excessive trailing whitespace being added to the clipboard. And multiple lines of content were treated as a single automatic-wrap line.

Problem

The problem isn't with TerminalBuffer as #4940 mentioned, but rather with TerminalRow.clear not resetting mLineWrap to false. Therefore, when a TerminalRow is recycled and reused, it will be treated as a automatic-wrap line.

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.

1 participant