aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2019-06-14 12:04:11 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-06-14 16:04:52 +0100
commit0a94dbe051042cba644240ab0361319744ee4875 (patch)
tree863c82e61d3596dfdf1dd1e0a1f0ead9e00eb314 /tmux.1
parentebc9dcb3bb71c2c8640466d84897971648a43845 (diff)
downloadrtmux-0a94dbe051042cba644240ab0361319744ee4875.tar.gz
rtmux-0a94dbe051042cba644240ab0361319744ee4875.tar.bz2
rtmux-0a94dbe051042cba644240ab0361319744ee4875.zip
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.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.14
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 263aecbc..286192a3 100644
--- a/tmux.1
+++ b/tmux.1
@@ -583,9 +583,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