Don't expand %{ and %} in themes to { and } - they could be treated as

abstracts again. Printing %{ and %} now prints just { and }. This fixes
printing {stuff} in statusbar (eg. {nick}).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1885 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-21 17:56:42 +00:00 committed by cras
commit bc8ee2d26c
2 changed files with 9 additions and 4 deletions

View file

@ -212,7 +212,9 @@ static void theme_format_append_next(THEME_REC *theme, GString *str,
return;
}
/* %{ or %} gives us { or } char */
/* %{ or %} gives us { or } char - keep the % char
though to make sure {} isn't treated as abstract */
g_string_append_c(str, '%');
chr = **format;
}