diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-20 07:10:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-06-20 07:10:57 +0000 |
commit | f85924615ecfd4fa83626c2f05162651da61781b (patch) | |
tree | c83c1ae4569637f310bd2d9dbd4fbc0c302cb5c1 /usr.bin/tmux/arguments.c | |
parent | 799dd7d5ba631a0c88b83bd812ef2aa3f7f5a1ab (diff) |
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.c | 6 |
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); } |