mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Don't ever add \0\0 to text queue - this might break things. Use \0 +
LINE_CMD_COLOR0 instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@476 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e8ed53bd92
commit
04c5baf637
3 changed files with 12 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ static void line_add_colors(GUI_WINDOW_REC *gui, int fg, int bg, int flags)
|
|||
if (((fg & ATTR_COLOR8) == 0 && (fg|(bg << 4)) != gui->last_color) ||
|
||||
((fg & ATTR_COLOR8) && (fg & 0xf0) != (gui->last_color & 0xf0))) {
|
||||
buffer[pos++] = 0;
|
||||
buffer[pos++] = color;
|
||||
buffer[pos++] = color == 0 ? LINE_CMD_COLOR0 : color;
|
||||
}
|
||||
|
||||
if ((flags & PRINTFLAG_UNDERLINE) != (gui->last_flags & PRINTFLAG_UNDERLINE)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue