From eb6ee3136fd3f8c69da226f0bdcbeeada38aea4f Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 20 Apr 2008 10:27:32 +0000 Subject: [PATCH] Simplify. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4808 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-terminfo.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 529fc2c2..84635d64 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -431,10 +431,9 @@ void term_addstr(TERM_WINDOW *window, const char *str) len = strlen(str); /* FIXME utf8 or big5 */ term_printed_text(len); - if (vcy != term_height || vcx != 0) - fputs(str, window->term->out); - else - fwrite(str, 1, len-1, window->term->out); + if (vcy == term_height && vcx == 0) + len--; + fwrite(str, 1, len, window->term->out); } void term_clrtoeol(TERM_WINDOW *window)