mattn / go-runewidth

wcwidth for golang
MIT License
609 stars 94 forks source link

don't truncate when input already fits #8

Closed schachmat closed 8 years ago

schachmat commented 8 years ago

Before this change truncating asdf to a length of 4 with tail will result in asd…. After this change, it will return asdf.

mattn commented 8 years ago

Thank you.