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

Re: universal argument regression



Peter Stephenson <pws@xxxxxxx> writes:

> 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
>  

Yup, that fixed it.

Thank you, Peter.

  - vin



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