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

Re: zsh-3.1.5-pws-19 unquotes prefix.



Tanaka Akira wrote:

> is27e1u11% fpath=($PWD/Completion/*(/))
> is27e1u11% . Completion/Core/compinit
> is27e1u11% _tst () { compadd -P '\*' a }              
> is27e1u11% _comps[tst]=_tst
> is27e1u11% tst \*<TAB>
> 
> Then, I get no completion.

Argh. Sorry, I just forgot to change `compadd -P', too. Of course it's 
the same fix as for comp{gen,ctl}.

Bye
 Sven

--- os/Zle/zle_tricky.c	Tue May 25 19:47:05 1999
+++ Src/Zle/zle_tricky.c	Wed May 26 20:28:14 1999
@@ -3609,7 +3609,9 @@
 		llsl = strlen(lsuf);
 		/* Test if there is an existing -P prefix. */
 		if (dat->pre && *dat->pre) {
-		    pl = pfxlen(dat->pre, lpre);
+		    char *dp = rembslash(dat->pre);
+
+		    pl = pfxlen(dp, lpre);
 		    llpl -= pl;
 		    lpre += pl;
 		}

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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