From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24019 invoked by alias); 25 Oct 2014 02:28:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33529 Received: (qmail 6232 invoked from network); 25 Oct 2014 02:27:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ZuyDSBZfVQEhFBi1JvigTggpynajplhzcLA88AesnTw=; b=mlOd7DSNYrrEDmV7d9DQiL7yC4MW+2ChCHfQ1oUgwaKNBCnUVIBBSHBRQ0wTA5Q0Dg lcGXKXyjAhAgc51Fs+6rCtP0BMuU/9hyveiuu8gZ8QkzrZngv7EOfZ9hUFcnqWri+bPS nlks2fxGAfgejW5jFRL+ruSAz6dYIAyo2gN59KJOtnLg10gi13LMlfI0HxTradnM4TTI Zyx5q/SegmmvOVApFQdS1/+p/bxPajbwkAkF6ubUD2eeqwdDE3ggo3sThXNADtEGwx8/ qezvMO8q99Ccamhe0FqIFW/npi8jF671XlZP0FFn5hTg2HJgPJ0aWfNhsHVcJlRGEK1L ERVw== MIME-Version: 1.0 X-Received: by 10.50.6.100 with SMTP id z4mr7435690igz.37.1414204070484; Fri, 24 Oct 2014 19:27:50 -0700 (PDT) In-Reply-To: <9014.1414190640@thecus.kiddle.eu> References: <4410.1414101990@thecus.kiddle.eu> <9014.1414190640@thecus.kiddle.eu> Date: Sat, 25 Oct 2014 04:27:50 +0200 Message-ID: Subject: Re: PATCH: cursor position after vi yank From: Mikael Magnusson To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Oct 25, 2014 at 12:44 AM, Oliver Kiddle wrote= : > I wrote: >> When producing the test cases, I noticed that zsh is not quite matching >> vi in terms of cursor positioning after a yank. This fixes that. > > I took another look at this code because I was concerned that I might > have got it wrong for unicode stuff. Has anyone got any tips on suitable > input for testing things like column positioning? And how to get that > input into a command-line? Trying to put combining characters in with: > print -z 'a\u0308' > Results in a<0308>. I'm not sure if that was what I wanted or not. You need to setopt combiningchars to enable the a and " to combine in zle. I have no clue about the rest :). Trying some double width characters would probably be a good idea too though, 306e is =E3=81=AE for example. --=20 Mikael Magnusson