mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-08-18 02:10:23 +03:00
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>
21 lines
553 B
Modula-2
21 lines
553 B
Modula-2
module github.com/charmbracelet/lipgloss
|
|
|
|
retract v0.7.0 // v0.7.0 introduces a bug that causes some apps to freeze.
|
|
|
|
go 1.18
|
|
|
|
require (
|
|
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
|
|
github.com/mattn/go-runewidth v0.0.15
|
|
github.com/muesli/reflow v0.3.0
|
|
github.com/muesli/termenv v0.15.2
|
|
github.com/rivo/uniseg v0.4.6
|
|
)
|
|
|
|
require (
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.18 // indirect
|
|
golang.org/x/sys v0.12.0 // indirect
|
|
)
|