mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +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'))
|
||||
cmdq_print(item, "%s", value);
|
||||
else if (options_isstring(o)) {
|
||||
utf8_stravis(&escaped, value, VIS_OCTAL|VIS_TAB|VIS_NL|VIS_DQ);
|
||||
cmdq_print(item, "%s \"%s\"", name, escaped);
|
||||
escaped = args_escape(value);
|
||||
cmdq_print(item, "%s %s", name, escaped);
|
||||
free(escaped);
|
||||
} else
|
||||
cmdq_print(item, "%s %s", name, value);
|
||||
|
Loading…
Reference in New Issue
Block a user