mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #357] Regression: table cell width broken for certain unicode chars #266
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#266
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 @Sacules on GitHub (Oct 26, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/357
Hi, I've upgraded tview to the latest version (from
f8bc69b90341to685bf6da76c2), and seems that it can't properly calculate the width of some cells with special Unicode chars, like the following:This also happens if the cells are at the top of the Table.

Text in question is
2814.@tslocum commented on GitHub (Jan 17, 2020):
I was having similar issues, upgrading go-runewidth resolved them. I've just added a PR to update the dependency in tview.
@rivo commented on GitHub (Feb 19, 2020):
This was closed implicitly with the merge of #390.
@Sacules can you let me know if your issue is resolved in the latest version?
@Sacules commented on GitHub (Feb 20, 2020):
Yup, I can confirm it works properly now :). Thanks!