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

Re: universal argument regression



Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx> wrote:
> It looks like the universal prefix argument is
> ignored in the latest CVS sources.

This wasn't hard to spot when I started looking...

Index: Src/Zle/zle_misc.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_misc.c,v
retrieving revision 1.31
diff -u -r1.31 zle_misc.c
--- Src/Zle/zle_misc.c	1 Nov 2005 03:26:52 -0000	1.31
+++ Src/Zle/zle_misc.c	2 Nov 2005 10:07:07 -0000
@@ -532,11 +532,11 @@
      * of digits.  We are assuming ASCII is a subset of the multibyte
      * encoding.
      */
-    if (idigit(lastchar))
+    if (!idigit(lastchar))
 	return 1;
 #else
     /* allow metafied as well as ordinary digits */
-    if (idigit(lastchar & 0x7f))
+    if (!idigit(lastchar & 0x7f))
 	return 1;
 #endif
 


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



Messages sorted by: Reverse Date, Date, Thread, Author