]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
I had apparently broken wrapping of double-width characters (again).
authorSimon Tatham <anakin@pobox.com>
Fri, 17 Dec 2004 11:24:25 +0000 (11:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 17 Dec 2004 11:24:25 +0000 (11:24 +0000)
Also fixed the new UTF-8 test file so that it tests double-width
wrapping both with _and_ without LATTR_WRAPPED2.

[originally from svn r5000]

terminal.c
testdata/utf8.txt

index 54f86f8630a80cee77305d8bf99d755f34d43fb9..b167f3b6835119f64e49ca9fbee692de1b052684 100644 (file)
@@ -2882,6 +2882,7 @@ static void term_out(Terminal *term)
                            else if (term->curs.y < term->rows - 1)
                                term->curs.y++;
                            term->curs.x = 0;
+                           cline = scrlineptr(term->curs.y);
                            /* Now we must check_boundary again, of course. */
                            check_boundary(term, term->curs.x, term->curs.y);
                            check_boundary(term, term->curs.x+2, term->curs.y);
index ac705960f5f191282214e5fb89ec53568334cd6d..7ad058f6aa61864d70251729d7ceea0031e46336 100644 (file)
@@ -12,7 +12,7 @@ Combining characters:
   สิบสองกษัตริย์ก่อนหน้าแลถัดไป       สององค์ไซร้โง่เขลาเบาปัญญา
 
 Wide characters with difficult wrapping:
-  コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ
+  Here we go then: コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ
 
 Arabic and bidirectional text:
             (من مجمع الزوائد ومنبع الفوائد للهيثمي ، ج 1 ، ص  74-84)