summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-06-20 07:10:56 +0000
committernicm <nicm@openbsd.org>2019-06-20 07:10:56 +0000
commitf8016429c0899994e8408136a3d4d8a3de7c52aa (patch)
tree1063429f9d217c634314d1e23a4589c47a27bcd1 /usr.bin/tmux/arguments.c
parentExpand command formats in %if and move the config file loading later (to (diff)
downloadwireguard-openbsd-f8016429c0899994e8408136a3d4d8a3de7c52aa.tar.xz
wireguard-openbsd-f8016429c0899994e8408136a3d4d8a3de7c52aa.zip
Add a -A flag to show-options to show parent options as well.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index 41562fd4dcc..08a72817412 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.25 2019/05/29 20:05:14 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.26 2019/06/20 07:10:56 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -213,7 +213,9 @@ args_escape(const char *s)
if (*s == '\0')
return (xstrdup(s));
- if ((strchr(quoted, s[0]) != NULL || s[0] == '~') && s[1] == '\0') {
+ if (s[0] != ' ' &&
+ (strchr(quoted, s[0]) != NULL || s[0] == '~') &&
+ s[1] == '\0') {
xasprintf(&escaped, "\\%c", s[0]);
return (escaped);
}