diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-12-01 08:12:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-12-01 08:12:59 +0000 |
commit | 57d2c1fd5cdca4ac739f2e7b627a74ad565c8ae4 (patch) | |
tree | f3c9bead26580095b7b0c8b80f26e96e1b88d3dd /usr.bin/tmux/tmux.1 | |
parent | c75ddda2e7c827d2fa129aef7df348a02218759a (diff) |
Make replacement of ##s consistent when drawing formats, whether
followed by [ or not. Add a flag (e) to the q: format modifier to double
up #s and use it for the window_flags format variable so it doesn't end
up escaping any following text. GitHub issue 2485.
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r-- | usr.bin/tmux/tmux.1 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index c892690884e..6e5eeb30fac 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.805 2020/11/30 13:37:45 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.806 2020/12/01 08:12:58 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 30 2020 $ +.Dd $Mdocdate: December 1 2020 $ .Dt TMUX 1 .Os .Sh NAME @@ -4638,7 +4638,12 @@ of the variable respectively. .Ql q:\& will escape .Xr sh 1 -special characters. +special characters or with an +.Ql e +suffix, escape hash characters (so +.Ql # +becomes +.Ql ## ). .Ql E:\& will expand the format twice, for example .Ql #{E:status-left} |