mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-08-18 02:10:23 +03:00
2745d8a3d8
The function `maxRuneWidth` was using a flawed approach by only evaluating strings based on each rune. The `uniseg` package provides a more accurate method based on grapheme clusters. This change switches over to the improved implementation which should achieve better results when determining the maximum width of all grapheme clusters in a string. Signed-off-by: Michael Lorant <michael.lorant@nine.com.au> |
||
---|---|---|
.. | ||
ISSUE_TEMPLATE | ||
workflows | ||
dependabot.yml |