From 903ca7b7578172a818ebf2b0fae766e37041b619 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 10 May 2002 13:13:06 +0000 Subject: [PATCH] more fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2765 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-terminfo.c | 6 +++--- 1 file 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);