1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

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

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)
}