Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: cursor position after vi yank



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