[GH-ISSUE #37] Remove all occurrences of utf8.RuneCountInString #32

Closed
opened 2026-03-03 16:21:48 +03:00 by kerem · 0 comments
Owner

Originally created by @mum4k on GitHub (May 20, 2018).
Original GitHub issue: https://github.com/mum4k/termdash/issues/37

Originally assigned to: @mum4k on GitHub.

While utf8.RuneCountInString counts the number of runes, it cannot be used to determine the number of cells the text takes. Full-width runes take multiple cells.

This mostly affects the text alignment code and the gauge widget.

Originally created by @mum4k on GitHub (May 20, 2018). Original GitHub issue: https://github.com/mum4k/termdash/issues/37 Originally assigned to: @mum4k on GitHub. While utf8.RuneCountInString counts the number of runes, it cannot be used to determine the number of cells the text takes. Full-width runes take multiple cells. This mostly affects the text alignment code and the gauge widget.
kerem 2026-03-03 16:21:48 +03:00
  • closed this issue
  • added the
    bug
    label
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/termdash#32
No description provided.