Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cosmetic completion problem
- X-seq: zsh-workers 21858
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: cosmetic completion problem
- Date: Mon, 10 Oct 2005 10:37:03 +0100
- In-reply-to: <1051009025449.ZM6480@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20051006205811.GA29634@xxxxxxxxxxx> <20051008073254.GB81@DervishD> <20051008214058.GA16720@xxxxxxxxxxx> <1051009025449.ZM6480@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> Inside that same (col >= columns) block is an fputs() call that's intended
> to make sure that the line really has wrapped when col == columns. I'm
> not sure, looking at it, why that's only necessary when (colors).
This doesn't really help, but until I added the ZLE_UNICODE_SUPPORT
there were two separate functions, one which handled colours and one
which didn't. I rationalised them into one with a flag for the few
local differences.
What might be more interesting is that I changed
if (++col == columns) {
into
if (col >= columns) {
which might well have introduced a subtle bug. The reason I introduced it
was we may have characters spanning multiple columns, but perhaps those
need something more sophisticated. (The increment now happens in one
of the immediately preceeding code branches.)
pws
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author