aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/events.rs
diff options
context:
space:
mode:
authorMichael Davis2024-03-21 00:16:58 +0000
committerGitHub2024-03-21 00:16:58 +0000
commit7f5fd63835d2d539c8ef3f8cfd40beebe9ed51ae (patch)
treeb59d866e8d3059b59fa2c453f2827e7c1cf0dff2 /helix-view/src/events.rs
parent52a0734120772f4dc2e523f50b6533466849fbeb (diff)
Evenly space statusline areas when there isn't space to align middle (#9950)
The refactor in bcf7b263 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.
Diffstat (limited to 'helix-view/src/events.rs')
0 files changed, 0 insertions, 0 deletions