mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #635] Stale glyphs when replacing placeholder with shorter text #940
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#940
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?
Originally created by @kitlangton on GitHub (Feb 6, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/635
I was adding mode-specific placeholder text in opencode, such that shell mode shows a relevant bash example rather than the normal prompt example.
That exposed a rendering bug in OpenTUI: when switching from the longer normal-mode placeholder to the shorter shell-mode placeholder, trailing characters from the old placeholder stayed visible. Example:
1. Build mode placeholder (all good)
2. When switching to bash mode (OH NO! DEAR GOD NO!)
As you can see, the last bits of
"Fix broken tests"aren't cleared as one might expect, leaving us with the hideous:Run a command... "pwd"roken tests