mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Reversed text (^V) works again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b716b29cb7
commit
85749b70bd
5 changed files with 21 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ static void get_colors(int flags, int *fg, int *bg)
|
|||
static void line_add_colors(TEXT_BUFFER_REC *buffer, LINE_REC **line,
|
||||
int fg, int bg, int flags)
|
||||
{
|
||||
unsigned char data[12];
|
||||
unsigned char data[20];
|
||||
int color, pos;
|
||||
|
||||
/* color should never have last bit on or it would be treated as a
|
||||
|
|
@ -130,6 +130,10 @@ static void line_add_colors(TEXT_BUFFER_REC *buffer, LINE_REC **line,
|
|||
data[pos++] = 0;
|
||||
data[pos++] = LINE_CMD_UNDERLINE;
|
||||
}
|
||||
if ((flags & GUI_PRINT_FLAG_REVERSE) != (last_flags & GUI_PRINT_FLAG_REVERSE)) {
|
||||
data[pos++] = 0;
|
||||
data[pos++] = LINE_CMD_REVERSE;
|
||||
}
|
||||
if (fg & ATTR_COLOR8) {
|
||||
data[pos++] = 0;
|
||||
data[pos++] = LINE_CMD_COLOR8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue