mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
another terminfo fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2764 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7574aa5b62
commit
d8fdfd225c
@ -387,15 +387,17 @@ void term_addch(TERM_WINDOW *window, int chr)
|
|||||||
|
|
||||||
if (vcmove) term_move_real();
|
if (vcmove) term_move_real();
|
||||||
|
|
||||||
/* With UTF-8, move cursor only if this char is either single-byte
|
if (vcy != term_height || vcx != 0) {
|
||||||
(8. bit on) or beginning of multibyte (7+8 bits on) */
|
/* With UTF-8, move cursor only if this char is either
|
||||||
if (term_type != TERM_TYPE_UTF8 ||
|
single-byte (8. bit off) or beginning of multibyte
|
||||||
(chr & 0x80) == 0 || (chr & 0x40) == 0) {
|
(7. bit off) */
|
||||||
term_printed_text(1);
|
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);
|
putc(chr, window->term->out);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void term_addch_utf8(TERM_WINDOW *window, unichar chr)
|
static void term_addch_utf8(TERM_WINDOW *window, unichar chr)
|
||||||
|
Loading…
Reference in New Issue
Block a user