summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-05-27 12:16:28 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-05-27 12:16:28 +0000
commite52990e8cd5c494c43baefe2263a7be6d2b64b35 (patch)
tree6287759ee64e717b3d5a06850b0a086729a35dd5 /usr.bin/tmux/arguments.c
parente83d6e71d661bb60ab9e411023ef755ccf52217f (diff)
Add an additional {} syntax for defining strings in the configuration
file, making it much tidier to define commands that contain other tmux or shell commands (like if-shell). Also tweak bind-key to expect a string if it is only given one argument, so {} can be used with it as well. From Avi Halachmi.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index 143089e28b8..e00ea617da4 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.22 2019/05/23 14:03:44 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.23 2019/05/27 12:16:27 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -207,7 +207,7 @@ args_print(struct args *args)
char *
args_escape(const char *s)
{
- static const char quoted[] = " #\"';$";
+ static const char quoted[] = " #\"';${}";
char *escaped, *result;
int flags;