mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
more fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2765 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d8fdfd225c
commit
903ca7b757
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue