Closed y-yagi closed 3 years ago
In the case of that input string contains multi-byte characters, not always length is one. So current implementation doesn't show multi-byte characters correctly.
This patch fixes to use runewidth.RuneWidth to get correct length.
runewidth.RuneWidth
Interesting, did not consider this Merging as-is, however, I guess this can cause weird behaviour when rendering 2-cells rune in the last column
In the case of that input string contains multi-byte characters, not always length is one. So current implementation doesn't show multi-byte characters correctly.
This patch fixes to use
runewidth.RuneWidth
to get correct length.