[GH-ISSUE #357] Regression: table cell width broken for certain unicode chars #266

Closed
opened 2026-03-04 01:03:28 +03:00 by kerem · 3 comments
Owner

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 f8bc69b90341 to 685bf6da76c2), and seems that it can't properly calculate the width of some cells with special Unicode chars, like the following:

image
image
image

This also happens if the cells are at the top of the Table.
image

Text in question is 2814.

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 `f8bc69b90341` to `685bf6da76c2`), and seems that it can't properly calculate the width of some cells with special Unicode chars, like the following: ![image](https://user-images.githubusercontent.com/31902745/67625280-70f95900-f812-11e9-9f85-0a9d6f039cec.png) ![image](https://user-images.githubusercontent.com/31902745/67625284-7c4c8480-f812-11e9-8bdd-52007dbe403c.png) ![image](https://user-images.githubusercontent.com/31902745/67625287-8a020a00-f812-11e9-9e57-f3b870827cdf.png) This also happens if the cells are at the top of the Table. ![image](https://user-images.githubusercontent.com/31902745/67625308-d8afa400-f812-11e9-9688-20290bb7e895.png) Text in question is `2814`.
kerem closed this issue 2026-03-04 01:03:28 +03:00
Author
Owner

@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.

<!-- gh-comment-id:575498692 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:588435026 --> @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?
Author
Owner

@Sacules commented on GitHub (Feb 20, 2020):

Yup, I can confirm it works properly now :). Thanks!

<!-- gh-comment-id:589123915 --> @Sacules commented on GitHub (Feb 20, 2020): Yup, I can confirm it works properly now :). Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#266
No description provided.