summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-17 01:52:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-17 01:52:43 +0000
commitc3da7fa8abe93ee39b8913959d6d66bf6b296ed8 (patch)
treef42a855808baa39844a1bff64fab42c9a9e3d1eb /src/fe-text
parentaa4a4d40727db29f43622cdfa7cc9eadbb5f839e (diff)
downloadirssi-c3da7fa8abe93ee39b8913959d6d66bf6b296ed8.zip
Hilighting updates. /HILIGHT -color, /SET hilight_color and /SET
hilight_act_color now use %codes for specifying color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar-items.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c
index b7db9d24..a11b6bbb 100644
--- a/src/fe-text/statusbar-items.c
+++ b/src/fe-text/statusbar-items.c
@@ -226,20 +226,14 @@ static char *get_activity_list(int normal, int hilight)
g_string_append(str, "%W");
break;
default:
- /*FIXME:if (window->hilight_color > 0) {
- int bg;
-
- bg = window->hilight_bg_color == -1 ?
- sbar_color_background :
- (window->hilight_bg_color << 4);
- set_color(stdscr, bg | mirc_colors[window->hilight_color%16]);
- g_string_append(str, "%M");
- } else */{
- g_string_append(str, "%M");
- }
+ g_string_append(str, window->hilight_color == NULL ?
+ "%M" : window->hilight_color);
break;
}
- g_string_sprintfa(str, "%d", window->refnum);
+ g_string_sprintfa(str, "%d", window->refnum);
+
+ /* make sure the background is returned to default */
+ g_string_append(str, "%n");
}
ret = str->len == 0 ? NULL : str->str;