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

Evenly space statusline areas when there isn't space to align middle #9950

Merged
merged 1 commit into from
Mar 21, 2024

Commits on Mar 20, 2024

  1. Evenly space statusline areas when there isn't space to align middle

    The refactor in bcf7b26 introduced a possible subtraction with overflow
    when the statusline is layed out so that the left or right sides are
    larger than the padding it would take to align the center area to the
    middle.
    
    When the left or right areas are too large, we can evenly space the
    elements rather than trying to align the center area to the middle.
    This prevents possible underflows and makes sense visually - it's
    still easy to tell the areas apart at a glance.
    the-mikedavis committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    9af5e66 View commit details
    Browse the repository at this point in the history