summaryrefslogtreecommitdiff
path: root/src/perl
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl')
-rw-r--r--src/perl/ui/Themes.xs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/perl/ui/Themes.xs b/src/perl/ui/Themes.xs
index dc5f6272..ab7c1909 100644
--- a/src/perl/ui/Themes.xs
+++ b/src/perl/ui/Themes.xs
@@ -241,8 +241,11 @@ PPCODE:
if (flags == 0) {
ret = theme_format_expand(theme, format);
} else {
- ret = theme_format_expand_data(theme, (const char **) &format, 'n', 'n',
- NULL, NULL, EXPAND_FLAG_ROOT | flags);
+ theme_rm_col reset;
+ strcpy(reset.m, "n");
+ ret = theme_format_expand_data(theme, (const char **) &format,
+ reset, reset, NULL, NULL,
+ EXPAND_FLAG_ROOT | flags);
}
XPUSHs(sv_2mortal(new_pv(ret)));
g_free_not_null(ret);