From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: Size zero allocations
Date: Mon, 26 Mar 2001 10:57:18 +0200 (MET DST) [thread overview]
Message-ID: <200103260857.KAA13279@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Sun, 25 Mar 2001 21:22:49 +0000
Bart Schaefer wrote:
> On Mar 7, 11:09am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> } > Press kill-whole-line at an empty prompt
> }
> } Well, adding an empty string to the kill ring doesn't seem to make
> } much sense... maybe we should just add a `if (!ct) return;' to cut()
> } (in zle_utils.c)?
>
> I'm in favor of this.
Well, then...
Bye
Sven
Index: Src/Zle/zle_utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_utils.c,v
retrieving revision 1.5
diff -u -r1.5 zle_utils.c
--- Src/Zle/zle_utils.c 2000/08/02 18:01:51 1.5
+++ Src/Zle/zle_utils.c 2001/03/26 08:54:35
@@ -128,6 +128,9 @@
void
cut(int i, int ct, int dir)
{
+ if (!ct)
+ return;
+
if (zmod.flags & MOD_VIBUF) {
struct cutbuffer *b = &vibuf[zmod.vibuf];
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~2001-03-26 8:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200103260857.KAA13279@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/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).