1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

more fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2765 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-10 13:13:06 +00:00 committed by cras
parent d8fdfd225c
commit 903ca7b757

View File

@ -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);