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



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