Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve maximum width of characters in a string #257

Merged
merged 1 commit into from
Feb 13, 2024

Commits on Jan 31, 2024

  1. Improve maximum width of characters in a string

    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>
    mikelorant committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    d456a5a View commit details
    Browse the repository at this point in the history