diff options
| author | user <user@clank> | 2026-08-13 14:47:20 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-13 14:47:20 +0200 |
| commit | 4d4222b4ef4029dcfa9af4ffa2149ae8f31370df (patch) | |
| tree | 123d7d3077854a198345d929f5e3abbdef478bc9 | |
| parent | release: 0.1.8 (diff) | |
| download | sl0ppi-4d4222b4ef4029dcfa9af4ffa2149ae8f31370df.tar.gz sl0ppi-4d4222b4ef4029dcfa9af4ffa2149ae8f31370df.tar.xz sl0ppi-4d4222b4ef4029dcfa9af4ffa2149ae8f31370df.zip | |
sl0p: account for the split button in the title-alignment test
A right-aligned title no longer runs flush to the corner: the split button now
occupies SPLIT_BUTTON_WIDTH columns between them. Adjusts the expectation rather
than the layout, since that gap is the intended design.
| -rw-r--r-- | sl0ppij/zellij-server/src/ui/pane_boundaries_frame.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sl0ppij/zellij-server/src/ui/pane_boundaries_frame.rs b/sl0ppij/zellij-server/src/ui/pane_boundaries_frame.rs index 37fd7c5..adfaf25 100644 --- a/sl0ppij/zellij-server/src/ui/pane_boundaries_frame.rs +++ b/sl0ppij/zellij-server/src/ui/pane_boundaries_frame.rs @@ -1997,9 +1997,10 @@ mod tests { center, ideal ); - // right ends flush against the closing corner + // right ends flush against the closing corner, less the split button + // that now sits between the title and that corner (SPLIT_BUTTON_WIDTH) assert!( - right + title.len() >= cols - 3, + right + title.len() >= cols - 3 - SPLIT_BUTTON_WIDTH, "right({}) + len should reach the right corner (cols {})", right, cols |
