mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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:
parent
2fbde1a24e
commit
036b1d3300
@ -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);
|
flags &= ~(GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_CLRTOEOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == '\n')
|
if (type == '\n') {
|
||||||
format_newline(dest->window);
|
format_newline(dest->window);
|
||||||
|
fgcolor = theme->default_color;
|
||||||
|
bgcolor = -1;
|
||||||
|
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE;
|
||||||
|
}
|
||||||
|
|
||||||
if (*ptr == '\0')
|
if (*ptr == '\0')
|
||||||
break;
|
break;
|
||||||
|
@ -267,8 +267,12 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
|||||||
insert_after = gui->use_insert_after ?
|
insert_after = gui->use_insert_after ?
|
||||||
gui->insert_after : view->buffer->cur_line;
|
gui->insert_after : view->buffer->cur_line;
|
||||||
|
|
||||||
if (flags & GUI_PRINT_FLAG_NEWLINE)
|
if (flags & GUI_PRINT_FLAG_NEWLINE) {
|
||||||
view_add_eol(view, &insert_after);
|
view_add_eol(view, &insert_after);
|
||||||
|
last_fg = LINE_COLOR_DEFAULT;
|
||||||
|
last_bg = LINE_COLOR_DEFAULT | LINE_COLOR_BG;
|
||||||
|
last_flags = 0;
|
||||||
|
}
|
||||||
line_add_colors(view->buffer, &insert_after, fg, bg, flags);
|
line_add_colors(view->buffer, &insert_after, fg, bg, flags);
|
||||||
|
|
||||||
if (flags & GUI_PRINT_FLAG_INDENT_FUNC) {
|
if (flags & GUI_PRINT_FLAG_INDENT_FUNC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user