mattn / go-runewidth

wcwidth for golang
MIT License
609 stars 94 forks source link

Avoid allocation of a Condition struct #4

Closed lestrrat closed 10 years ago

lestrrat commented 10 years ago

I believe this would remedy https://github.com/peco/peco/issues/164 ?

coveralls commented 10 years ago

Coverage Status

Coverage decreased (-0.22%) when pulling 69b82781e9b719c9165a08bbb5e01bd437992479 on lestrrat:master into d70c973ddedf458fb28531e3335a972c2cc28b00 on mattn:master.

mattn commented 10 years ago

Sorry, runewidth.StringWidth should work per each condition.

See https://github.com/mattn/go-runewidth/commit/36f63b8223e701c16f36010094fb6e84ffbaf8e0