* PATCH: Re: Size zero allocations
@ 2001-03-26 8:57 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2001-03-26 8:57 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-26 8:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-26 8:57 PATCH: Re: Size zero allocations Sven Wischnowsky
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).