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

PATCH: Re: More _zmodload misbehaviour



Peter Stephenson wrote:

> zmodload now removes the .so suffix again, thanks.
> 
> I had a problem completing with . in my path in the Doc directory.  At
> first I get a sensible list of modules.  After I type zsh/, however, I get
> the list:
> 
> Completing module file
> CVS/
> 
> because it's looking in the Zsh subdirectory.  Fine, because I have case
> insenstive matching, except there aren't any .so files there, and there
> certainly are in /usr/local/lib/zsh/3.1.6-dev-21/zsh.  If there's no Zsh
> subdirectory it works OK; I get the list of modules I'm expecting.
> It seems to be preferring things it shouldn't be.

Indeed. Missing initialisation in the loop for the -W paths.

The thing in _main_complete is just a small optimisation.

Bye
 Sven

Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.4
diff -u -r1.4 _main_complete
--- Completion/Core/_main_complete	2000/04/05 10:50:08	1.4
+++ Completion/Core/_main_complete	2000/04/07 08:09:47
@@ -19,7 +19,7 @@
 setopt localoptions nullglob rcexpandparam extendedglob
 unsetopt markdirs globsubst shwordsplit nounset ksharrays
 
-local func funcs ret=1 tmp _compskip format _comp_ignore \
+local func funcs ret=1 tmp _compskip format \
       _completers _completer _completer_num curtag \
       _matchers _matcher _matcher_num _comp_tags \
       context state line opt_args val_args curcontext="$curcontext" \
@@ -29,7 +29,7 @@
       _saved_list="${compstate[list]}" \
       _saved_insert="${compstate[insert]}"
 
-typeset -U _lastdescr
+typeset -U _lastdescr _comp_ignore
 
 [[ -z "$curcontext" ]] && curcontext=:::
 
Index: Completion/Core/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v
retrieving revision 1.5
diff -u -r1.5 _path_files
--- Completion/Core/_path_files	2000/04/05 11:07:26	1.5
+++ Completion/Core/_path_files	2000/04/07 08:09:47
@@ -247,6 +247,8 @@
   # in the following loop, which walks through the pathname components
   # in the string from the line.
 
+  skipped=
+  cpre=
   tpre="$pre"
   tsuf="$suf"
   testpath="$donepath"

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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