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

Re: PATCH: was: Re: zsh bug



I wrote this patch:

> --- Src/zle_tricky.c	Tue May 25 10:32:35 1999
> +++ Src/zle_tricky.c.old	Mon May 10 13:21:55 1999
> @@ -1069,14 +1069,13 @@
>  	    we = ll;
>  	tt = (char *)line;
>  	if (tmp) {
> -	    linptr += tmp - (char *) line;
>  	    line = (unsigned char *)tmp;
>  	    ll = strlen((char *)line);
> -	    addedx = 0;
>  	}
>  	if (t0 != STRING && inwhat != IN_MATH) {
>  	    if (tmp) {
>  		tmp = NULL;
> +		linptr = (char *)line;
>  		lexrestore();
>  		goto start;
>  	    }

Err, Bart, Greg: sorry, but this patch is reversed, dunno how this
happened. Here is it the right way round.

Bye
 Sven

--- Src/zle_tricky.c.old	Mon May 10 13:21:55 1999
+++ Src/zle_tricky.c	Tue May 25 10:32:35 1999
@@ -1069,13 +1069,14 @@
 	    we = ll;
 	tt = (char *)line;
 	if (tmp) {
+	    linptr += tmp - (char *) line;
 	    line = (unsigned char *)tmp;
 	    ll = strlen((char *)line);
+	    addedx = 0;
 	}
 	if (t0 != STRING && inwhat != IN_MATH) {
 	    if (tmp) {
 		tmp = NULL;
-		linptr = (char *)line;
 		lexrestore();
 		goto start;
 	    }

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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