about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-26 06:12:25 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-26 06:12:25 +0000
commitbfa4f17652830a69698d180435a0df045843723e (patch)
treea7739aa7e402e110a1efdd78a12a38e4571e59f5 /Completion/Core
parentbc21696b63fbc01f34351630f15a196134c8a458 (diff)
downloadzsh-bfa4f17652830a69698d180435a0df045843723e.tar.gz
zsh-bfa4f17652830a69698d180435a0df045843723e.tar.xz
zsh-bfa4f17652830a69698d180435a0df045843723e.zip
file-sort made $fignore fail (10922)
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files26
1 files changed, 13 insertions, 13 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 10fe39869..31b8dff66 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -86,6 +86,19 @@ if (( ! $mopts[(I)-[JVX]] )); then
   mopts=( "$mopts[@]" "$expl[@]" )
 fi
 
+# If given no `-F' option, we may want to use $fignore, turned into patterns.
+
+[[ -z "$_comp_no_ignore" && $#ignore -eq 0 &&
+   ( -z $gopt || "$pats" = \ #\*\ # ) && -n $FIGNORE ]] && 
+    ignore=( "?*${^fignore[@]}" )
+
+if (( $#ignore )); then
+  _comp_ignore=( "$_comp_ignore[@]" "$ignore[@]" )
+  (( $mopts[(I)-F] )) || mopts=( "$mopts[@]" -F _comp_ignore )
+fi
+
+(( $#matcher )) && mopts=( "$mopts[@]" "$matcher[@]" )
+
 if zstyle -s ":completion:${curcontext}:files" file-sort tmp1; then
   case "$tmp1" in
   *size*)             sort=oL;;
@@ -140,19 +153,6 @@ eorig="$orig"
    ( -n "$compstate[pattern_match]" &&
      "${orig#\~}" != "${${orig#\~}:q}" ) ]] && menu=yes
 
-# If given no `-F' option, we may want to use $fignore, turned into patterns.
-
-[[ -z "$_comp_no_ignore" && $#ignore -eq 0 &&
-   ( -z $gopt || "$pats" = \ #\*\ # ) && -n $FIGNORE ]] && 
-    ignore=( "?*${^fignore[@]}" )
-
-if (( $#ignore )); then
-  _comp_ignore=( "$_comp_ignore[@]" "$ignore[@]" )
-  (( $mopts[(I)-F] )) || mopts=( "$mopts[@]" -F _comp_ignore )
-fi
-
-(( $#matcher )) && mopts=( "$mopts[@]" "$matcher[@]" )
-
 # Now let's have a closer look at the string to complete.
 
 if [[ "$pre[1]" = \~ ]]; then