Skip to content

fix(statusbar): keep a one-column gap between sections when no separator is set - #901

Merged
hawk90 merged 1 commit into
mainfrom
fix/statusbar-section-gap
Oct 8, 2026
Merged

hawk90 merged 1 commit into
mainfrom
fix/statusbar-section-gap

Conversation

@hawk90

@hawk90 hawk90 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

render_group advanced past the gap after a section only when a separator was set, but group_width, the center/right positions and the priority fit (#841) count section + 1. With the default (no separator), left_text("main").left_text("UTF-8") drew mainUTF-8, and two right sections ended a column short of where separated ones sit.

Now every section is followed by a one-column gap; the separator char is drawn in it only between two sections, as before.

Tests (in statusbar/render.rs) failed before the fix: sections without a separator keep a gap, and right sections sit in the same columns with or without a separator.

Fixes #886

🤖 Generated with Claude Code

…tor is set

render_group advanced past the gap only when a separator was set, while
group_width, the right/center positions and the priority fit count one
column per section. Without a separator, sections ran together and the
right group ended short of the edge.

Fixes #886
@github-actions github-actions Bot added the widget Widget components label Oct 8, 2026
@hawk90
hawk90 enabled auto-merge (squash) October 8, 2026 23:43
@hawk90
hawk90 merged commit dbd5838 into main Oct 8, 2026
24 checks passed
@hawk90
hawk90 deleted the fix/statusbar-section-gap branch October 8, 2026 23:57
hawk90 pushed a commit that referenced this pull request Oct 9, 2026
🤖 I have created a release *beep* *boop*
---


## [3.8.0](v3.7.0...v3.8.0)
(2026-10-09)


### Features

* **msrv:** raise the minimum supported Rust version to 1.95
([#906](#906))
([32231da](32231da))


### Bug Fixes

* **event:** cut large pastes on a char boundary and drop key releases
([#905](#905))
([7f718c8](7f718c8))
* **statusbar:** keep a one-column gap between sections when no
separator is set ([#901](#901))
([dbd5838](dbd5838))
* **text:** stop char wrapping from looping forever on a wide char that
does not fit ([#904](#904))
([fbc43af](fbc43af))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

widget Widget components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

statusbar: sections run together when no separator is set

1 participant