summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_main_complete4
-rw-r--r--Completion/Core/_path_files2
2 files changed, 4 insertions, 2 deletions
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"