Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: yank-pop broken in current dev zsh?
- X-seq: zsh-workers 38286
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: yank-pop broken in current dev zsh?
- Date: Wed, 13 Apr 2016 23:01:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1460581264; bh=z2j/Khzh4jWcyZb9YgUmB23oZ/gpqO40jkZEcQM++aw=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=KRLIl6ipkHtmlNSXFmuYL4ZgelSpR4u+iinZb4lUXRHRYNKRcnKjQ81KNPm7FPN5B/oCVh8YGE5A0Gwm2utPeu07rKMZUEdefxsA4kUFIHRDuRDDlamDPphhpHIhNp8wuWMSbMo+TfcS9onltHu3D/atGa5u0L2gDzPJqHHXFV/xLHYEucm3nelMC6bzVqY2Dg+31EAmSj1uhELs2y/NgDKgra3LWD2L446kvUal3mDudilGOydgjjYUFJAS2xVWsGArpPsra2Oqtp59lAwwepkSurO5TFNcW7A7Q2TcyUhLqzKN2Kpp5rE+x1gkdbx8MLt33cis27EDyPupa1ugDA==
- In-reply-to: <160111211125.ZM6061@torch.brasslantern.com>
- 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: <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();
}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author