diff options
author | nicm <nicm> | 2013-11-24 11:29:09 +0000 |
---|---|---|
committer | nicm <nicm> | 2013-11-24 11:29:09 +0000 |
commit | 1286c56188502e217c49f712faba66ee4178f964 (patch) | |
tree | 6c825cf0cde93f082232f6def62bb33d75da90eb | |
parent | 40982a01fb39b7be749bc807a06ba352dd6c2e5e (diff) | |
download | rtmux-1286c56188502e217c49f712faba66ee4178f964.tar.gz rtmux-1286c56188502e217c49f712faba66ee4178f964.tar.bz2 rtmux-1286c56188502e217c49f712faba66ee4178f964.zip |
Replace ## by # in format.
-rw-r--r-- | format.c | 7 | ||||
-rw-r--r-- | tmux.1 | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -321,6 +321,13 @@ format_expand(struct format_tree *ft, const char *fmt) break; fmt += n + 1; continue; + case '#': + while (len - off < 2) { + buf = xrealloc(buf, 2, len); + len *= 2; + } + buf[off++] = '#'; + continue; default: s = NULL; if (ch >= 'A' && ch <= 'Z') @@ -3011,6 +3011,9 @@ for example .Ql #{session_name} . Some variables also have an shorter alias such as .Ql #S . +.Ql ## +is replaced by a single +.Ql # . Conditionals are also accepted by prefixing with .Ql \&? and separating two alternatives with a comma; |