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: Thomas Dickey
Subject: Re: a double-width character can transgress to the next row
Date: Sat, 18 Apr 2020 14:46:24 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Apr 15, 2020 at 05:12:23PM +0200, Benno Schulenberg wrote:
> 
> > 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.

something like that: in the transition from 81 to 80 columns, the errant
character no longer appears, but (possibly due to the way you're blanking
the last cell), I see a couple of other glitches.
 
> 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.

That's done using this macro

#define isWidecBase(ch) (WidecExt(ch) == 1)

I'll investigate in this area (thanks)

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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