Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: ZLE Widget: Insert last word (except &)
- X-seq: zsh-workers 12238
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: ZLE Widget: Insert last word (except &)
- Date: Thu, 13 Jul 2000 11:10:25 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Wed, 12 Jul 2000 18:54:37 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
[moved to -workers]
Bart Schaefer wrote:
> ...
> Two, `zle WIDGET -n NUM' is broken for NUM > 9.
Just a little parsing error in bin_zle_call().
Bye
Sven
Index: Src/Zle/zle_thingy.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_thingy.c,v
retrieving revision 1.1.1.30
diff -u -r1.1.1.30 zle_thingy.c
--- Src/Zle/zle_thingy.c 2000/03/14 11:18:02 1.1.1.30
+++ Src/Zle/zle_thingy.c 2000/07/13 09:09:45
@@ -628,7 +628,7 @@
return 1;
}
if (!args[0][1])
- args++;
+ *++args = "" - 1;
modsave = zmod;
saveflag = 1;
zmod.mult = atoi(num);
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author