You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tests): handle style option format changes in tmux 3.2
Based on examination of tmux source code commit f03b6113 (May 2020):
In tmux 3.2, style options changed from OPTIONS_TABLE_STYLE to
OPTIONS_TABLE_STRING with OPTIONS_TABLE_IS_STYLE flag to support
format expansion in styles.
This changed how styles are stored and displayed:
**tmux ≤3.1 behavior:**
- Styles parsed and normalized when stored
- Output uses style_tostring() which normalizes:
- "bold" → "bright"
- bg=default (color 8) omitted from output
- Example: Input "fg=red,bg=default,bold" → Output "fg=red,bright"
**tmux ≥3.2 behavior:**
- Styles stored as literal strings (enables format expansion like #{...})
- Output shows the exact string that was set
- Example: Input "fg=red,bg=default,bold" → Output "fg=red,bg=default,bold"
References:
- /home/d/study/c/tmux/commit/f03b6113 (tmux 3.2)
- /home/d/study/c/tmux-3.0a/options.c:126-127 (OPTIONS_IS_STYLE → style_tostring)
- /home/d/study/c/tmux-3.0a/style.c:174-245 (style_tostring implementation)
- /home/d/study/c/tmux-3.0a/attributes.c:26-50 (attributes_tostring: bold→bright)
0 commit comments