summaryrefslogtreecommitdiff
path: root/src/fe-text/term-terminfo.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-10 12:35:05 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-10 12:35:05 +0000
commitd8fdfd225c87c149f0d8b8932a4ac170ebefca28 (patch)
treebe6f6871bfd6f2f47e17159bc34ba5190d31c121 /src/fe-text/term-terminfo.c
parent7574aa5b629a41b6d2e741490035bfef4567c755 (diff)
downloadirssi-d8fdfd225c87c149f0d8b8932a4ac170ebefca28.zip
another terminfo fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2764 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/term-terminfo.c')
-rw-r--r--src/fe-text/term-terminfo.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index ddb00441..c419687e 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -387,15 +387,17 @@ void term_addch(TERM_WINDOW *window, int chr)
if (vcmove) term_move_real();
- /* With UTF-8, move cursor only if this char is either single-byte
- (8. bit on) or beginning of multibyte (7+8 bits on) */
- if (term_type != TERM_TYPE_UTF8 ||
- (chr & 0x80) == 0 || (chr & 0x40) == 0) {
- term_printed_text(1);
- }
+ if (vcy != term_height || vcx != 0) {
+ /* With UTF-8, move cursor only if this char is either
+ single-byte (8. bit off) or beginning of multibyte
+ (7. bit off) */
+ if (term_type != TERM_TYPE_UTF8 ||
+ (chr & 0x80) == 0 || (chr & 0x40) == 0) {
+ term_printed_text(1);
+ }
- if (vcy != term_height || vcx != 0)
putc(chr, window->term->out);
+ }
}
static void term_addch_utf8(TERM_WINDOW *window, unichar chr)