diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-29 20:05:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-29 20:05:16 +0000 |
commit | 787d4d982bb0fbe5e15f19fd39e2ca4c0e6e5cbf (patch) | |
tree | 667a90dda56a4c74764381aa4785eca8fedd77b3 /usr.bin/tmux/arguments.c | |
parent | b38d16d286cdad6dbb28f1811de5e6c7ce437284 (diff) |
Use VIS_CSTYLE for the arguments and add the missing escapes it can
generate to the parser.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r-- | usr.bin/tmux/arguments.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c index c583d22a37c..41562fd4dcc 100644 --- a/usr.bin/tmux/arguments.c +++ b/usr.bin/tmux/arguments.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arguments.c,v 1.24 2019/05/28 18:30:30 nicm Exp $ */ +/* $OpenBSD: arguments.c,v 1.25 2019/05/29 20:05:14 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -218,7 +218,7 @@ args_escape(const char *s) return (escaped); } - flags = VIS_OCTAL|VIS_TAB|VIS_NL; + flags = VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL; if (s[strcspn(s, quoted)] != '\0') flags |= VIS_DQ; utf8_stravis(&escaped, s, flags); |