Numerous identical variables in Customize options

40 views
Skip to first unread message

eggbean

unread,
Oct 30, 2021, 9:22:30 PM10/30/21
to tmux-users
When I <prefix>-C for Customize Options I have multiple instances of a particular variable I use for styling tmux under Session Options.
(0)   + Server Options
(1)   - Session Options
(2)   ├─>   @active: colour27
(3)   ├─>   @active: colour27
(4)   ├─>   @active: colour27
(5)   ├─>   @active: colour27
(6)   ├─>   @active: colour27
(7)   ├─>   @active: colour27
(8)   ├─>   @active: colour27
(9)   ├─>   @active: colour27
(M-a) ├─>   @active: colour27
(M-b) ├─>   @active: colour27
(M-c) ├─>   @active: colour27
...
It appears 40 times. But if I use the command `tmux show-options -g` the same variable only appears once. Why is this happening? It has been like this for a long time, but I have never been able to figure out why.

These are the lines in my configuration that use this variable:
set -g @active colour27'
set -g status-style "#{?#{==:#{@statusline},off},bg=#{@inactive},bg=#{@active}},fg=#{@black}"
set -g window-status-style "#{?#{==:#{@statusline},off},bg=#{@inactive},bg=#{@active}#,#{?window_zoomed_flag,bg=#{@zoomed},}},fg=#{@black}"
set -g window-status-current-style "fg=#{@white},bg=#{@active},#{?window_zoomed_flag,bg=#{@zoomed},}"


eggbean

unread,
Oct 31, 2021, 4:39:56 PM10/31/21
to tmux-users
Well I have asked someone on the IRC channel and they see the same problem, so it seems to be a probable bug in tmux.

Nicholas Marriott

unread,
Nov 1, 2021, 8:04:26 AM11/1/21
to eggbean, tmux-users
How are you setting this option?

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/73211029-6f9e-43d3-9f86-c92160973a9bn%40googlegroups.com.

eggbean

unread,
Nov 4, 2021, 1:51:30 PM11/4/21
to tmux-users
Is it an option? It just appears as a variable, usually around 40 times. All the lines in my config that use this variable are shown above.

Nicholas Marriott

unread,
Nov 4, 2021, 3:46:59 PM11/4/21
to eggbean, tmux-users
How are you settling the @active option?

eggbean

unread,
Nov 11, 2021, 3:15:42 AM11/11/21
to tmux-users
The only lines in the configuration that mention @active are already mentioned:

set -g @active colour27'
set -g status-style "#{?#{==:#{@statusline},off},bg=#{@inactive},bg=#{@active}},fg=#{@black}"
set -g window-status-style "#{?#{==:#{@statusline},off},bg=#{@inactive},bg=#{@active}#,#{?window_zoomed_flag,bg=#{@zoomed},}},fg=#{@black}"
set -g window-status-current-style "fg=#{@white},bg=#{@active},#{?window_zoomed_flag,bg=#{@zoomed},}"

I am not the only person who sees this problem and the other guy uses a completely different configuration.

Nicholas Marriott

unread,
Nov 29, 2021, 6:04:02 AM11/29/21
to eggbean, tmux-users
I have made this change, can you either apply it yourself or wait until
it reaches GitHub (should be a few hours) and then see if the problem
still occurs?


--- window-customize.c 21 Aug 2021 17:25:32 -0000 1.12
+++ window-customize.c 29 Nov 2021 11:01:51 -0000 1.13
@@ -398,11 +398,11 @@ window_customize_build_options(struct wi

for (i = 0; i < size; i++) {
if (oo2 != NULL)
- o = options_get(oo0, list[i]);
+ o = options_get(oo2, list[i]);
if (o == NULL && oo1 != NULL)
o = options_get(oo1, list[i]);
if (o == NULL)
- o = options_get(oo2, list[i]);
+ o = options_get(oo0, list[i]);
if (options_owner(o) == oo2)
scope = scope2;
else if (options_owner(o) == oo1)
> (0)A A + Server Options
> (1)A A - Session Options
> (2)A A a**a**>A A @active: colour27
> (3)A A a**a**>A A @active: colour27
> (4)A A a**a**>A A @active: colour27
> (5)A A a**a**>A A @active: colour27
> (6)A A a**a**>A A @active: colour27
> (7)A A a**a**>A A @active: colour27
> (8)A A a**a**>A A @active: colour27
> (9)A A a**a**>A A @active: colour27
> (M-a) a**a**>A A @active: colour27
> (M-b) a**a**>A A @active: colour27
> (M-c) a**a**>A A @active: colour27
> https://groups.google.com/d/msgid/tmux-users/2cbe3ee8-cdce-4537-aa39-b10af19c808bn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages