Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: cursor position after vi yank
- X-seq: zsh-workers 33529
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: PATCH: cursor position after vi yank
- Date: Sat, 25 Oct 2014 04:27:50 +0200
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <9014.1414190640@thecus.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4410.1414101990@thecus.kiddle.eu> <9014.1414190640@thecus.kiddle.eu>
On Sat, Oct 25, 2014 at 12:44 AM, Oliver Kiddle <okiddle@xxxxxxxxxxx> 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 の for
example.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author