summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/options.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-23 14:03:44 +0000
committernicm <nicm@openbsd.org>2019-05-23 14:03:44 +0000
commit5c131106bbf08e3f46edb3c5f7e7e6cdd6dad225 (patch)
treeca7f1b87659fbd485832a2b60a10fb5ada4e9d9b /usr.bin/tmux/options.c
parentDon't print "not conigured" messages for nodes that are disabled. (diff)
downloadwireguard-openbsd-5c131106bbf08e3f46edb3c5f7e7e6cdd6dad225.tar.xz
wireguard-openbsd-5c131106bbf08e3f46edb3c5f7e7e6cdd6dad225.zip
Break the argument escaping code into a separate function and use it to
escape key bindings in list-keys. Also escape ~ and ; and $ properly.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r--usr.bin/tmux/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c
index 1b3ef07ac09..c0a4b3ba2d3 100644
--- a/usr.bin/tmux/options.c
+++ b/usr.bin/tmux/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.45 2019/05/23 11:13:30 nicm Exp $ */
+/* $OpenBSD: options.c,v 1.46 2019/05/23 14:03:44 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -122,7 +122,7 @@ options_value_tostring(struct options_entry *o, union options_value *ov,
char *s;
if (OPTIONS_IS_COMMAND(o))
- return (cmd_list_print(ov->cmdlist));
+ return (cmd_list_print(ov->cmdlist, 0));
if (OPTIONS_IS_STYLE(o))
return (xstrdup(style_tostring(&ov->style)));
if (OPTIONS_IS_NUMBER(o)) {