diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-04-20 10:27:32 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-04-20 10:27:32 +0000 |
commit | eb6ee3136fd3f8c69da226f0bdcbeeada38aea4f (patch) | |
tree | 85767a090b45eb893fd51430e3355f496b08f515 /src | |
parent | 0957ac5dfea95a8f8fffda76646d73e947515c7a (diff) | |
download | irssi-eb6ee3136fd3f8c69da226f0bdcbeeada38aea4f.zip |
Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4808 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/term-terminfo.c | 7 |
1 files 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) |