I had apparently broken wrapping of double-width characters (again).
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 17 Dec 2004 11:24:25 +0000 (11:24 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5000 cda61777-01e9-0310-a592-d414129be87e

terminal.c
testdata/utf8.txt

index 54f86f8..b167f3b 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 ac70596..7ad058f 100644 (file)
@@ -12,7 +12,7 @@ Combining characters:
   สิบสองกษัตริย์ก่อนหน้าแลถัดไป       สององค์ไซร้โง่เขลาเบาปัญญา
 
 Wide characters with difficult wrapping:
-  コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ
+  Here we go then: コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ
 
 Arabic and bidirectional text:
             (من مجمع الزوائد ومنبع الفوائد للهيثمي ، ج 1 ، ص  74-84)