mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
if \x isn't a known escape sequence, it should print just x, not \x.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1887 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
99fe282e6d
commit
905a5127f4
1 changed files with 1 additions and 6 deletions
|
|
@ -496,12 +496,7 @@ char *parse_special_string(const char *cmd, SERVER_REC *server, void *item,
|
||||||
g_string_append_c(str, ';');
|
g_string_append_c(str, ';');
|
||||||
else {
|
else {
|
||||||
chr = expand_escape(&cmd);
|
chr = expand_escape(&cmd);
|
||||||
if (chr != -1)
|
g_string_append_c(str, chr != -1 ? chr : *cmd);
|
||||||
g_string_append_c(str, chr);
|
|
||||||
else {
|
|
||||||
g_string_append_c(str, '\\');
|
|
||||||
g_string_append_c(str, *cmd);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
code = 0;
|
code = 0;
|
||||||
} else if (code == '$') {
|
} else if (code == '$') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue