A couple of minor parser changes around conditions: 1) only treat #{

specially after a condition, otherwise as a comment (which is more as
most people expect) 2) allow formats to be quoted after a condition.
This commit is contained in:
nicm
2019-06-14 12:04:11 +00:00
parent f35f15b107
commit 45203582ff
2 changed files with 22 additions and 8 deletions

4
tmux.1
View File

@ -582,9 +582,9 @@ or
.Ql %endif .
For example:
.Bd -literal -offset indent
%if #{==:#{host},myhost}
%if "#{==:#{host},myhost}"
set -g status-style bg=red
%elif #{==:#{host},myotherhost}
%elif "#{==:#{host},myotherhost}"
set -g status-style bg=green
%else
set -g status-style bg=blue