diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-10 13:13:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-10 13:13:06 +0000 |
commit | 903ca7b7578172a818ebf2b0fae766e37041b619 (patch) | |
tree | 3048024f28e548cb80652601e9b3611417335e41 /src/fe-text | |
parent | d8fdfd225c87c149f0d8b8932a4ac170ebefca28 (diff) | |
download | irssi-903ca7b7578172a818ebf2b0fae766e37041b619.zip |
more fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2765 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/term-terminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index c419687e..c61c51ef 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -387,7 +387,7 @@ void term_addch(TERM_WINDOW *window, int chr) if (vcmove) term_move_real(); - if (vcy != term_height || vcx != 0) { + if (vcy < term_height-1 || vcx < term_width-1) { /* With UTF-8, move cursor only if this char is either single-byte (8. bit off) or beginning of multibyte (7. bit off) */ @@ -415,10 +415,10 @@ void term_add_unichar(TERM_WINDOW *window, unichar chr) if (term_detached) return; if (vcmove) term_move_real(); - term_printed_text(1); - if (vcy == term_height && vcx == 0) + if (vcy == term_height-1 && vcx == term_width-1) return; /* last char in screen */ + term_printed_text(1); switch (term_type) { case TERM_TYPE_UTF8: term_addch_utf8(window, chr); |