Skip to content

Border offset is wrong when using colorful border or text #332

Closed Answered by GlebBeloded
GlebBeloded asked this question in Q&A
Discussion options

You must be logged in to vote

I've figured out by debug that the issue was in ansi.StringWidth function.
Going to the library github, I've found people who found a way to fix it.
charmbracelet/x#123

All you need to do is to downgrade:

replace github.com/charmbracelet/x/ansi v0.1.3 => github.com/charmbracelet/x/ansi v0.1.2

which results in expected output:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by GlebBeloded
Comment options

You must be logged in to vote
1 reply
@meowgorithm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants