J Raynor
2015-02-17 06:01:34 UTC
Right now, if you try to set a style with a bad value, tmux will
return an error, but it'll set the style to default. This happens
even if the style isn't currently set.
For example:
localhost> tmux show -w
localhost> tmux set pane-border-style bg=BadValue
bad style: bg=BadValue
localhost> tmux show -w
pane-border-style default
localhost> tmux set pane-border-style bg=red
localhost> tmux show -w
pane-border-style bg=red
localhost> tmux set pane-border-style bg=AnotherBadValue
bad style: bg=AnotherBadValue
localhost> tmux show -w
pane-border-style default
I've attached a patch that changes this behavior. If you pass a bad
value, then you still get the error message, but the option isn't set
or changed.
return an error, but it'll set the style to default. This happens
even if the style isn't currently set.
For example:
localhost> tmux show -w
localhost> tmux set pane-border-style bg=BadValue
bad style: bg=BadValue
localhost> tmux show -w
pane-border-style default
localhost> tmux set pane-border-style bg=red
localhost> tmux show -w
pane-border-style bg=red
localhost> tmux set pane-border-style bg=AnotherBadValue
bad style: bg=AnotherBadValue
localhost> tmux show -w
pane-border-style default
I've attached a patch that changes this behavior. If you pass a bad
value, then you still get the error message, but the option isn't set
or changed.