mattn / go-runewidth

wcwidth for golang
MIT License
609 stars 94 forks source link

should rune like tab `\t` have width? #77

Closed ogios closed 7 months ago

ogios commented 7 months ago

currently on my Linux machine it's 0, and in terminal it's 8, but for most of the IDE, it's customizable. i don't know if there's other char like this and should i just define the width of it my self?

mattn commented 7 months ago

tab code is non-printable code. so runewidth return 0 always.