Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: bug report: vi mode yank should yank to 0 register
- X-seq: zsh-workers 33514
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: Re: bug report: vi mode yank should yank to 0 register
- Date: Thu, 23 Oct 2014 01:03:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1414019004; bh=mGGk0JTKDvye7Z8wGTxqzBUg/alfTT7kENsMAvaJmfM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=kK9ZtnfqKXEg7zSVGvd0atmuGjOMzp9CXqwcB4LyOJpL2pXg3CtGe3h/Tjz1bxq5JalFKlNrFo6DiEGs6qNHa5xy1/Ruz98dZiSls1S8X5ayLpQVyKQeFP40ND9YjysmZUEXiUCsByScjlOCmDS529eNOjuMKcvd9AhcTb6qYjw=
- In-reply-to: <28859.1414015603@thecus.kiddle.eu>
- 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: <CAH6rKyDOgRDYm0yXpTD41BLf_0+vu=3GSHuf-7O1H25tv+=K3Q@mail.gmail.com> <25197.1413973482@thecus.kiddle.eu> <28859.1414015603@thecus.kiddle.eu>
I wrote:
> In the process, I've found a couple of further issues: even with a named
> register, we should update cutbuf
And this one seems to be the even smaller patch below. Sorry for the
noise I was expecting to leave these for tomorrow.
Oliver
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index 1479365..f69bc77 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -941,7 +941,6 @@ cuttext(ZLE_STRING_T line, int ct, int flags)
ZS_memcpy(b->buf + len, line, ct);
b->len = len + ct;
}
- return;
} else if (flags & CUT_YANK) {
/* Save in "0 */
free(vibuf[26].buf);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author