gum/pager
Christian Rocha b23ebce896 fix: measure runes instead of bytes when truncating
There are a couple of gotchas in LipGlossTruncate:

* len() returns the number of bytes in a string
* slicing a string slices it on a byte level

The fix would normally be to convert the string to a slice of runes and
operate on that new slice:

r := []rune(str)

However, reflow already contains an ansi-aware truncate feature that we
can use instead as a drop-in replacement for the LipGlossTruncate
function.
2023-05-18 11:45:14 -04:00
..
command.go feature(pager): add search functionality (#321) 2023-05-14 23:19:07 -04:00
options.go feature(pager): add search functionality (#321) 2023-05-14 23:19:07 -04:00
pager.go fix: measure runes instead of bytes when truncating 2023-05-18 11:45:14 -04:00
search.go fix: measure runes instead of bytes when truncating 2023-05-18 11:45:14 -04:00