zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: yank-pop broken in current dev zsh?
Date: Mon, 11 Jan 2016 21:11:25 -0800	[thread overview]
Message-ID: <160111211125.ZM6061@torch.brasslantern.com> (raw)

zsh-5.2-67-g424b417 (haven't checked older ones, but I don't know of any
very recent changes that would affect this):

If I start (zsh -f, emacs bindings) with

% echo one two three

and I execute ESC backspace ctl-space ESC backspace, I have

% echo one 

(with trailing space) and the kill ring contains "two " and "three".  If
I now execute ctl-y ESC y (yank "two " then yank-pop to get "three"), I
end up with

% echo one three

with "thre" highlighted and the cursor on the final "e".  The cursor should
be after the entire word "three", should it not?  The whole "three" is then
removed/replaced on a subsequent yank-pop, but the highlighting and cursor
may be off by one on the next (and all following until I cycle all the way
back to "
two ") replacement as well.

I at first thought this was related to setting the mark, but that isn't it.
It also doesn't seem to be related to yank-popping a shorter word after a
longer one.  It doesn't always happen, though it is repeatable via the
example above.

I suppose this might be related to the CURSOR increment I mentioned needing
following select-in-shell-word in a widget.


             reply	other threads:[~2016-01-12  5:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12  5:11 Bart Schaefer [this message]
2016-04-13 21:01 ` Oliver Kiddle

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=160111211125.ZM6061@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).