1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Fixed the "multiple space split" fix :) It was causing crashes, strange that

it worked in my tests..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2051 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-18 14:28:04 +00:00 committed by cras
parent bfe3e83b62
commit a1197a5c08

View File

@ -391,19 +391,18 @@ static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
continue;
}
if ((*text & 127) >= 32)
term_addch(view->window, *text);
else {
/* low-ascii */
term_set_color(view->window, ATTR_RESET|ATTR_REVERSE);
term_addch(view->window, (*text & 127)+'A'-1);
term_set_color(view->window, color);
if (xpos < term_width) {
if ((*text & 127) >= 32)
term_addch(view->window, *text);
else {
/* low-ascii */
term_set_color(view->window, ATTR_RESET|ATTR_REVERSE);
term_addch(view->window, (*text & 127)+'A'-1);
term_set_color(view->window, color);
}
}
text++;
xpos++;
if (xpos == term_width)
text = text_newline;
}
if (need_clrtoeol && xpos < term_width) {