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

Re: CVS completer (Re: PATCH: Re: Completion/User functions again)



Tanaka Akira wrote:

> > I think it should be replaced by 'compadd "$PREFIX"'.
> 
> The patch is follows.

Just for completeness' sake...

Bye
 Sven

diff -u -r oc/Base/_complete_opts Completion/Base/_complete_opts
--- oc/Base/_complete_opts	Thu Jul 22 08:35:45 1999
+++ Completion/Base/_complete_opts	Thu Jul 22 08:41:05 1999
@@ -18,7 +18,7 @@
 case "${#no_arg}-${#with_arg}" in
   0-0)
     if [[ x$PREFIX = x-* ]]; then
-      compadd - "$PREFIX"
+      compadd -nQ - "$PREFIX$SUFFIX"
     else
       done=''
     fi

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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