diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-01-04 18:01:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-01-04 18:01:57 +0000 |
commit | 56e31d467c7b2087eb3baf54f9536d07df280c38 (patch) | |
tree | 71f5ab8f17dd64e57a15212a386586532b00d4f8 /usr.bin/tmux | |
parent | 4aa3ec3afd8ba305395a5be2b566cdf691bb6b90 (diff) |
Add ~ to quoted characters for %%%, reported by tb@.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index a70ee5a6644..b58d459e19b 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.155 2019/10/03 10:24:05 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.156 2020/01/04 18:01:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -661,7 +661,7 @@ char * cmd_template_replace(const char *template, const char *s, int idx) { char ch, *buf; - const char *ptr, *cp, quote[] = "\"\\$;"; + const char *ptr, *cp, quote[] = "\"\\$;~"; int replaced, quoted; size_t len; |