From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21804 invoked from network); 15 Apr 2008 13:59:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Apr 2008 13:59:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 69838 invoked from network); 15 Apr 2008 13:59:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Apr 2008 13:59:38 -0000 Received: (qmail 16294 invoked by alias); 15 Apr 2008 13:59:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24817 Received: (qmail 16278 invoked from network); 15 Apr 2008 13:59:34 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 15 Apr 2008 13:59:34 -0000 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by bifrost.dotsrc.org (Postfix) with ESMTP id 69F9D8043AC7 for ; Tue, 15 Apr 2008 15:58:56 +0200 (CEST) Received: by wx-out-0506.google.com with SMTP id h27so1847206wxd.3 for ; Tue, 15 Apr 2008 06:58:55 -0700 (PDT) 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= Received: by 10.140.251.1 with SMTP id y1mr4292928rvh.292.1208267934389; Tue, 15 Apr 2008 06:58:54 -0700 (PDT) Received: by 10.141.202.18 with HTTP; Tue, 15 Apr 2008 06:58:54 -0700 (PDT) Message-ID: <237967ef0804150658h1f8df5e5w422955fc6b92fe29@mail.gmail.com> Date: Tue, 15 Apr 2008 15:58:54 +0200 From: "Mikael Magnusson" To: "Zsh Hackers' List" Subject: Re: PATCH: (large) initial support for combining characters in ZLE. In-Reply-To: <20080414145425.566bcb92@news01> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080413175442.0e95a241@pws-pc> <237967ef0804140634l7e02ce6fofff7f3f3ec6c8d7c@mail.gmail.com> <20080414145425.566bcb92@news01> X-Virus-Scanned: ClamAV 0.91.2/6780/Tue Apr 15 11:47:04 2008 on bifrost X-Virus-Status: Clean On 14/04/2008, Peter Stephenson wrote: > On Mon, 14 Apr 2008 15:34:19 +0200 > "Mikael Magnusson" 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