Add common IS_PRINTABLE macro.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-05-03 15:49:19 +00:00 committed by exg
commit 7c84b6fc2e
4 changed files with 5 additions and 5 deletions

View file

@ -451,7 +451,7 @@ static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
xpos += char_width;
if (xpos <= term_width) {
if ((chr & ~0x80) >= 32) {
if (IS_PRINTABLE(chr)) {
for (; text < end; text++)
term_addch(view->window, *text);
term_addch(view->window, *text);