mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #882] Unexpected line breaks in TextView #642
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#642
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 @sshelll on GitHub (Sep 6, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/882
When I tried to run the codes in the Wiki of TextView,

I modified the codes because I wanted to highlight some chars instead of words.
Here's the code:
And then I got the result like this:

There're many unexpected line breaks after the target char ('t' in this example).
Is this a bug?
Or there's another way to achieve the goal: highlight single char without line breaks?
PS: I also want to refresh the screen char by char, that's why I called
time.Sleep()in each round.My Env:
@rivo commented on GitHub (Sep 6, 2023):
This looks like a bug. Let me get back to you once I know more.
@rivo commented on GitHub (Sep 7, 2023):
I found the issue. The latest commit should fix this.