summaryrefslogtreecommitdiff
path: root/src/fe-common/core/themes.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-15 20:02:15 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-15 20:02:15 +0000
commitfc918570293831f974e448afa54c6973f863e54d (patch)
treef1d092e89148e71ef1378c9b28ae58b2e67e829d /src/fe-common/core/themes.h
parentcda63f03d417e906f369efe4c966265db2fa5159 (diff)
downloadirssi-fc918570293831f974e448afa54c6973f863e54d.zip
Changed the escaping system - theme_format_expand_data()'s
EXPAND_FLAG_IGNORE_EMPTY now also checks if the argument is a $variable that is empty. Statusbar now first expands the formats and after then expands $variables. Should fix at least when trying to print #$$$ channel in statusbar. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2023 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/themes.h')
-rw-r--r--src/fe-common/core/themes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/themes.h b/src/fe-common/core/themes.h
index 3693d4f4..59d2810a 100644
--- a/src/fe-common/core/themes.h
+++ b/src/fe-common/core/themes.h
@@ -44,7 +44,7 @@ void theme_register_module(const char *module, FORMAT_REC *formats);
void theme_unregister_module(const char *module);
#define EXPAND_FLAG_IGNORE_REPLACES 0x01 /* don't use the character replaces when expanding */
-#define EXPAND_FLAG_IGNORE_EMPTY 0x02 /* if abstract's argument is empty, don't try to expand it (ie. {xx }, but not {xx}) */
+#define EXPAND_FLAG_IGNORE_EMPTY 0x02 /* if abstract's argument is empty, or the argument is a $variable that is empty, don't try to expand it (ie. {xx }, but not {xx}) */
#define EXPAND_FLAG_RECURSIVE_MASK 0x0f
/* private */
#define EXPAND_FLAG_ROOT 0x10