mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Properly initialize and reset last_{fg,bg}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4693 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3e700f4b20
commit
2fbde1a24e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user