Reset colors and attributes on newline.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4694 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-02-01 16:02:56 +00:00 committed by exg
commit 036b1d3300
2 changed files with 10 additions and 2 deletions

View file

@ -986,8 +986,12 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text)
flags &= ~(GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_CLRTOEOL);
}
if (type == '\n')
if (type == '\n') {
format_newline(dest->window);
fgcolor = theme->default_color;
bgcolor = -1;
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE;
}
if (*ptr == '\0')
break;