Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (large) initial support for combining characters in ZLE.
- X-seq: zsh-workers 24817
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: (large) initial support for combining characters in ZLE.
- Date: Tue, 15 Apr 2008 15:58:54 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ke52Qk5e2MwhJ6XrWPqrs39xLO+izys9I2uffXnQf3s=; b=suFufbyoH6xClDwgF6BDGmbY1mCZN0ZaKtbEc7ZJAD86FWPV/Uz2KGN9H/n8ks2B6AEwN1iy3eBOeyMHWj7I32fzyRlltbesaGd//S4Obu+JLQ9dBmOL4JMalWuVLEAbhzQiK2SSZsEkekrowrdanbtSix6ucB+FFn8UJhJCxX4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IPLSqjwjGP/3MS/aGOPsXFjaAqcEaaQGJ7GswV/fmc2aWlo7nJ8D+STNsXImUxAnGNy3YoLp3J5/Pi7Bh+2N+a4OLAsF9Rc5Mmu8WjBG9L0qT52KWLvVTTDAiZWE1Zllt0+q6hgU5YM6a2q5BuPTE5zlH0ExUN9+pA1oC9ktJ/I=
- In-reply-to: <20080414145425.566bcb92@news01>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080413175442.0e95a241@pws-pc> <237967ef0804140634l7e02ce6fofff7f3f3ec6c8d7c@xxxxxxxxxxxxxx> <20080414145425.566bcb92@news01>
On 14/04/2008, Peter Stephenson <pws@xxxxxxx> wrote:
> On Mon, 14 Apr 2008 15:34:19 +0200
> "Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
> > Hi, I'm not sure if you want bug reports at this point, but one thing
> > I noticed and can reproduce in zsh -f is that the cursor sometimes
> > gets misplaced in the terminal with combiningchars on.
> > % zsh -f
> > % setopt combiningchars
> > % print -z $'\u0342'
> > the buffer should now contain an inverted <0342>, press left or ctrl-a
> > or whatever to go to the start of the line and press 'a'. Here, in
> > both urxvt and xterm (though in xterm no ~ appears over the a) the
> > cursor goes to sit on the start of the previous line in the terminal.
> > Funnily when you backspace it goes back to the proper place in the
> > current buffer again.
>
>
> Here are a few trivial fixes for some simple problems like that---it's
> simply a case of moving right until we get off the combining characters.
>
> I should find a general fix for the jumping cursor problem, but for now
> it's quite convenient (for me, anyway) to see the problems so clearly.
This is better, but I can still put the cursor between the a and the ~.
> > % zsh -f
> > % setopt combiningchars
> > % print -z $'\u0342'
> > the buffer should now contain an inverted <0342>, press left or ctrl-a
> > or whatever to go to the start of the line and press 'a'.
But instead of pressing a, type a '!' and go left again and press 'a',
then press ctrl-d. (or ctrl-t)
Another thing I noticed is that ctrl-t moves just the combining char,
not the whole base+combiningchar, but that might already be on your
todo as a subset of "fix widgets" :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author