From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: yank-pop broken in current dev zsh?
Date: Wed, 13 Apr 2016 23:01:03 +0200 [thread overview]
Message-ID: <2377.1460581263@thecus.kiddle.eu> (raw)
In-Reply-To: <160111211125.ZM6061@torch.brasslantern.com>
On 11 Jan, Bart wrote:
> 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
> I suppose this might be related to the CURSOR increment I mentioned needing
> following select-in-shell-word in a widget.
That's more-or-less exactly what the issue is. There was a cursor
correction in there that should only be there for vi command-mode. Does
things seem right in emacs mode with the following fix?
In many cases we compare zlecs to findbol() for the correction but I
don't think that would be correct in this case.
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c
index 25f65b3..a040ca0 100644
--- a/Src/Zle/zle_misc.c
+++ b/Src/Zle/zle_misc.c
@@ -597,7 +597,7 @@ static void pastebuf(Cutbuffer buf, int mult, int position)
zlecs += cc;
}
yanke = zlecs;
- if (zlecs)
+ if (zlecs && invicmdmode())
DECCS();
}
}
prev parent reply other threads:[~2016-04-13 21:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 5:11 Bart Schaefer
2016-04-13 21:01 ` Oliver Kiddle [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=2377.1460581263@thecus.kiddle.eu \
--to=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).