summaryrefslogtreecommitdiff
path: root/src/fe-common/core/themes.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-17 02:32:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-17 02:32:32 +0000
commitd9008ae249d0d58563a293cd866d15e9d33496d1 (patch)
tree2436a712f189ac50d41bbb7e64ef72fce935a7c6 /src/fe-common/core/themes.c
parentc3da7fa8abe93ee39b8913959d6d66bf6b296ed8 (diff)
downloadirssi-d9008ae249d0d58563a293cd866d15e9d33496d1.zip
%F = blinking on/off. several fixes to make blinking work better. some
hilight fixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1403 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/themes.c')
-rw-r--r--src/fe-common/core/themes.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c
index 997395a3..ee053cd5 100644
--- a/src/fe-common/core/themes.c
+++ b/src/fe-common/core/themes.c
@@ -186,16 +186,13 @@ static void theme_format_append_next(THEME_REC *theme, GString *str,
chr = **format;
if (**format == 'n') {
/* %n = change to default color */
- if (default_fg == 'n' || default_bg == 'n') {
- if (*last_fg != 'n')
- g_string_append(str, "%n");
- *last_bg = *last_fg = 'n';
- }
- if (default_bg != *last_bg) {
+ g_string_append(str, "%n");
+
+ if (default_bg != 'n') {
g_string_append_c(str, '%');
g_string_append_c(str, default_bg);
}
- if (default_fg != *last_fg) {
+ if (default_fg != 'n') {
g_string_append_c(str, '%');
g_string_append_c(str, default_fg);
}