diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-01-28 11:07:11 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-01-28 11:07:11 +0000 |
commit | 2fbde1a24ec1019a874234a5051bba10f585de52 (patch) | |
tree | fa5099e088dc6eb58712d193f0c37a6334f2521a | |
parent | 3e700f4b208d29b4412253a4f3705fe198d3dbe8 (diff) | |
download | irssi-2fbde1a24ec1019a874234a5051bba10f585de52.zip |
Properly initialize and reset last_{fg,bg}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4693 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/gui-printtext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 38889589..062c80ab 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -288,7 +288,8 @@ static void sig_gui_printtext_finished(WINDOW_REC *window) TEXT_BUFFER_VIEW_REC *view; LINE_REC *insert_after; - last_fg = last_bg = -1; + last_fg = LINE_COLOR_DEFAULT; + last_bg = LINE_COLOR_DEFAULT | LINE_COLOR_BG; last_flags = 0; view = WINDOW_GUI(window)->view; @@ -308,6 +309,8 @@ static void read_settings(void) void gui_printtext_init(void) { + last_fg = LINE_COLOR_DEFAULT; + last_bg = LINE_COLOR_DEFAULT | LINE_COLOR_BG; next_xpos = next_ypos = -1; default_indent_func = NULL; indent_functions = g_hash_table_new((GHashFunc) g_str_hash, |