about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 08:14:06 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 08:14:06 +0000
commit2562bd3b77145fd50d5b1c4f54054fc60a53eb6c (patch)
treec036e936a45c0f84bc5a6581a7de07e033d3293b
parent18870148c5e4e71c356821000bb2b8d07366cd49 (diff)
downloadzsh-2562bd3b77145fd50d5b1c4f54054fc60a53eb6c.tar.gz
zsh-2562bd3b77145fd50d5b1c4f54054fc60a53eb6c.tar.xz
zsh-2562bd3b77145fd50d5b1c4f54054fc60a53eb6c.zip
missing initialisations, -W with multiple directories didn't wor (10571)
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Core/_main_complete4
-rw-r--r--Completion/Core/_path_files2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cd9956f2..b1e324cb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-07  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
+
+	* 10571: Completion/Core/_main_complete,
+ 	Completion/Core/_path_files: missing initialisations, -W with
+ 	multiple directories didn't work
+
 2000-04-06  Clint Adams  <schizo@debian.org>
 	* Felix Rosencrantz: 10564: Completion/X/_x_display:
 	typo in _wanted.
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index 2a1477e04..90bdef648 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -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 @@ local func funcs ret=1 tmp _compskip format _comp_ignore \
       _saved_list="${compstate[list]}" \
       _saved_insert="${compstate[insert]}"
 
-typeset -U _lastdescr
+typeset -U _lastdescr _comp_ignore
 
 [[ -z "$curcontext" ]] && curcontext=:::
 
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 183d59af3..3ddc62f94 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -247,6 +247,8 @@ for prepath in "$prepaths[@]"; do
   # in the following loop, which walks through the pathname components
   # in the string from the line.
 
+  skipped=
+  cpre=
   tpre="$pre"
   tsuf="$suf"
   testpath="$donepath"