bug-bash
[Top][All Lists]
Advanced

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

Re: all invisible characters are attributed to the first line


From: Chet Ramey
Subject: Re: all invisible characters are attributed to the first line
Date: Tue, 3 Aug 2004 09:32:10 -0400

> How about this instead?  Whenever ninvis is incremented, it is also
> assigned to invfl if we haven't wrapped yet.  I believe this is the
> same as what the original code was trying to achieve.  Additionally
> this gets rid of special case code by doing the assignment in only one
> place.

Your patch has a number of problems: it ignores multibyte characters,
it still performs many more assignment statements than necessary, and
I am not convinced it's correct in the presence of visible characters
after invisible ones. 

I have fixed the problem already.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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