zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: cursor position after vi yank
Date: Sat, 25 Oct 2014 04:27:50 +0200	[thread overview]
Message-ID: <CAHYJk3SJP6T=PCc74khC-WOddZe8aGOJN2cONRRYQ0+O6X5Rsw@mail.gmail.com> (raw)
In-Reply-To: <9014.1414190640@thecus.kiddle.eu>

On Sat, Oct 25, 2014 at 12:44 AM, Oliver Kiddle <okiddle@yahoo.co.uk> 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


      reply	other threads:[~2014-10-25  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 22:06 Oliver Kiddle
2014-10-24 22:44 ` Oliver Kiddle
2014-10-25  2:27   ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3SJP6T=PCc74khC-WOddZe8aGOJN2cONRRYQ0+O6X5Rsw@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).