mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4808 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0957ac5dfe
commit
eb6ee3136f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user