Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: ZLE Widget: Insert last word (except &)



[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