Commit feab0e0
committed
fix(tests): handle bold→bright conversion in complex style test
tmux <3.2 normalizes 'bold' to 'bright' in style output.
Added version guard to expect correct output format.
Verification method:
- Created git worktrees for tmux versions 3.0a, 3.1b, 3.2a, 3.3a, 3.4, 3.5
- Examined source code to trace style handling across versions
- Tested directly with tmux commands to verify actual behavior
In tmux ≤3.1, styles are parsed and normalized when stored:
- attributes_fromstring() accepts both "bold" and "bright" as aliases
- attributes_tostring() always outputs "bright" (never "bold")
References:
- tmux-3.0a/attributes.c:32-50 (attributes_fromstring table)
- tmux-3.0a/attributes.c:26-28 (attributes_tostring output)
- tmux-3.0a/options.c:126-127 (OPTIONS_IS_STYLE → style_tostring)
- tmux commit f03b6113 (tmux 3.2 style format change)1 parent c96976f commit feab0e0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
609 | 614 | | |
610 | 615 | | |
611 | 616 | | |
| |||
0 commit comments