mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
It is not longer necessary to double-escape ; in %%%, problem reported
by Theo Buehler.
This commit is contained in:
parent
df0334d3b3
commit
7ce8135138
6
cmd.c
6
cmd.c
@ -661,7 +661,7 @@ char *
|
||||
cmd_template_replace(const char *template, const char *s, int idx)
|
||||
{
|
||||
char ch, *buf;
|
||||
const char *ptr, *cp, quote[] = "\"\\$";
|
||||
const char *ptr, *cp, quote[] = "\"\\$;";
|
||||
int replaced, quoted;
|
||||
size_t len;
|
||||
|
||||
@ -692,10 +692,6 @@ cmd_template_replace(const char *template, const char *s, int idx)
|
||||
for (cp = s; *cp != '\0'; cp++) {
|
||||
if (quoted && strchr(quote, *cp) != NULL)
|
||||
buf[len++] = '\\';
|
||||
if (quoted && *cp == ';') {
|
||||
buf[len++] = '\\';
|
||||
buf[len++] = '\\';
|
||||
}
|
||||
buf[len++] = *cp;
|
||||
}
|
||||
buf[len] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user