Comment from @chipmunkie.

This commit is contained in:
Jakub Sobon 2018-06-13 17:28:32 +01:00
parent 870e1bda00
commit b98948326b
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ func TrimText(text string, maxCells int, om OverrunMode) (string, error) {
switch {
case om == OverrunModeTrim:
// Only write the rune if it still fits, i.e. don't cut
// full-width runes in halt.
// full-width runes in half.
if cur+rw == maxCells {
b.WriteRune(r)
}