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

Re: PATCH: Re: Approximate completion



I wrote:

> But I forgot to update the cached
> prefix-length after extracting the flags.

Uh oh. Two more of these...

Bye
 Sven

diff -ru ../z.old/Src/Zle/compcore.c Src/Zle/compcore.c
--- ../z.old/Src/Zle/compcore.c	Tue Jan  4 10:15:43 2000
+++ Src/Zle/compcore.c	Tue Jan  4 11:35:20 2000
@@ -1696,6 +1696,7 @@
 		    }
 		    pline = matchparts;
 		    lpre += ml;
+		    llpl -= ml;
 		    bcp = ml;
 		    bpadd = strlen(s) - ml;
 		} else {
@@ -1721,6 +1722,7 @@
 		    }
 		    sline = revert_cline(matchparts);
 		    lsuf[llsl - ml] = '\0';
+		    llsl -= ml;
 		    bcs = ml;
 		    bsadd = strlen(s) - ml;
 		} else {

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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