bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a double-width character can transgress to the next row


From: Benno Schulenberg
Subject: Re: a double-width character can transgress to the next row
Date: Wed, 15 Apr 2020 17:12:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

> On Tue, Apr 14, 2020 at 02:23:36PM +0200, Benno Schulenberg wrote:
>> Now, going from dump number 4 to 5, the screen has narrowed again and
>> all rows lose an \s at the end -- except for row 21 and 25: they don't
>> lose the \u307f and \u7d0d at the end!

Attached crude patch avoids the problem.

Of course, s[ToCols] should only be blanked when text[ToCols] actually
contains the start of a wide/fullwidth character, but I don't know how
to check for that -- .text[] has a strange, anonymous type.

Benno

Attachment: ensure-the-last-column-is-wiped.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]