diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-14 10:14:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-14 10:14:32 +0000 |
commit | 85749b70bd629d8710eb631f59383dedbaf86a70 (patch) | |
tree | 520e26a46d67d82d324d9b30677ccdcc7d0ad553 /src/fe-text/gui-printtext.c | |
parent | b716b29cb7743d83e7cb7c7b20003e1d2a8145be (diff) | |
download | irssi-85749b70bd629d8710eb631f59383dedbaf86a70.zip |
Reversed text (^V) works again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-printtext.c')
-rw-r--r-- | src/fe-text/gui-printtext.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 3a70ef23..364d68c3 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -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; |