From 9a6ebcc92bba00a39a1f54c7c4c7b6dcf8dfd972 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 17 Dec 2004 11:24:25 +0000 Subject: [PATCH] I had apparently broken wrapping of double-width characters (again). 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 | 1 + testdata/utf8.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 54f86f86..b167f3b6 100644 --- a/terminal.c +++ b/terminal.c @@ -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); diff --git a/testdata/utf8.txt b/testdata/utf8.txt index ac705960..7ad058f6 100644 --- a/testdata/utf8.txt +++ b/testdata/utf8.txt @@ -12,7 +12,7 @@ Combining characters: สิบสองกษัตริย์ก่อนหน้าแลถัดไป สององค์ไซร้โง่เขลาเบาปัญญา Wide characters with difficult wrapping: - コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ + Here we go then: コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ コンニチハ Arabic and bidirectional text: (من مجمع الزوائد ومنبع الفوائد للهيثمي ، ج 1 ، ص 74-84) -- 2.11.0