glyph.go (193B)
1 package glyph 2 3 import "github.com/mattn/go-runewidth" 4 5 // TODO: handle Unicode marks. 6 func Width(r rune) int { 7 switch r { 8 case '\t': 9 return 8 10 default: 11 return runewidth.RuneWidth(r) 12 } 13 }
srcGo monorepo. | |
git clone git://code.dwrz.net/src | |
Log | Files | Refs |