From a6090c7f8f196f45c6b00d3ff4dde26ec1aee407 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Mon, 21 Apr 2008 17:32:55 +0000 Subject: [PATCH] Remove no longer needed kludge to inhibit writing in the last cell. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4810 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-terminfo.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 84635d64..c919616c 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -373,7 +373,6 @@ void term_addch(TERM_WINDOW *window, char chr) { if (vcmove) term_move_real(); - 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) */ @@ -383,7 +382,6 @@ void term_addch(TERM_WINDOW *window, char chr) } putc(chr, window->term->out); - } } static void term_addch_utf8(TERM_WINDOW *window, unichar chr) @@ -399,8 +397,6 @@ static void term_addch_utf8(TERM_WINDOW *window, unichar chr) void term_add_unichar(TERM_WINDOW *window, unichar chr) { if (vcmove) term_move_real(); - if (vcy == term_height-1 && vcx == term_width-1) - return; /* last char in screen */ switch (term_type) { case TERM_TYPE_UTF8: @@ -431,8 +427,6 @@ 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) - len--; fwrite(str, 1, len, window->term->out); }