mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Use the same argument escaping code for options as well.
This commit is contained in:
parent
f006116bac
commit
6c260af56d
@ -209,8 +209,8 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item,
|
|||||||
if (args_has(self->args, 'v'))
|
if (args_has(self->args, 'v'))
|
||||||
cmdq_print(item, "%s", value);
|
cmdq_print(item, "%s", value);
|
||||||
else if (options_isstring(o)) {
|
else if (options_isstring(o)) {
|
||||||
utf8_stravis(&escaped, value, VIS_OCTAL|VIS_TAB|VIS_NL|VIS_DQ);
|
escaped = args_escape(value);
|
||||||
cmdq_print(item, "%s \"%s\"", name, escaped);
|
cmdq_print(item, "%s %s", name, escaped);
|
||||||
free(escaped);
|
free(escaped);
|
||||||
} else
|
} else
|
||||||
cmdq_print(item, "%s %s", name, value);
|
cmdq_print(item, "%s %s", name, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user