Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.1.5-pws-19 unquotes prefix.
- X-seq: zsh-workers 6354
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: zsh-3.1.5-pws-19 unquotes prefix.
- Date: Thu, 27 May 1999 08:24:04 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 26 May 1999 22:01:44 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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