mirror of https://github.com/mum4k/termdash.git
Comment from @chipmunkie.
This commit is contained in:
parent
870e1bda00
commit
b98948326b
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue