summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-07-03 17:45:46 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-07-03 17:45:46 +0000
commit6f8986d370a7b4d799cab40c5ac3a3d937b9faeb (patch)
treec4b85a72df843276a4695dcd729957972c79629a /Completion
parent47e9efb061dd84118fd18a14682b771009fb44fb (diff)
downloadzsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.tar.gz
zsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.tar.xz
zsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.zip
12148: Don't merge display-ordering glob flags into the parens of $(...).
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files12
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index df7f50d8a..48e9dd299 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -117,9 +117,9 @@ if zstyle -s ":completion:${curcontext}:files" file-sort tmp1; then
 
     tmp2=()
     for tmp1 in "$pats[@]"; do
-      if [[ "$tmp1" = (#b)(?*)(\(\([^\|~]##\)\)) ]]; then
+      if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
         tmp2=( "$tmp2[@]" "${match[1]}((${sort}${match[2][3,-1]}" )
-      elif [[ "$tmp1" = (#b)(?*)(\([^\|~]##\)) ]]; then
+      elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then
         tmp2=( "$tmp2[@]" "${match[1]}(${sort}${match[2][2,-1]}" )
       else
         tmp2=( "$tmp2[@]" "${tmp1}(${sort})" )
@@ -150,8 +150,8 @@ zstyle -a ":completion:${curcontext}:files" fake fake
 zstyle -s ":completion:${curcontext}:files" ignore-parents ignpar
 
 if [[ -n "$compstate[pattern_match]" &&
-      ( ( -z "$SUFFIX" && "$PREFIX" = *\([^\|\~]##\) ) ||
-        "$SUFFIX" =  *\([^\|\~]##\) ) ]]; then
+      ( ( -z "$SUFFIX" && "$PREFIX" = (|*[^\$])\([^\|\~]##\) ) ||
+        "$SUFFIX" =  (|*[^\$])\([^\|\~]##\) ) ]]; then
   # Copy all glob qualifiers from the line to
   # the patterns used when generating matches
   if [[ "$SUFFIX" = *\([^\|\~]##\) ]]; then
@@ -163,9 +163,9 @@ if [[ -n "$compstate[pattern_match]" &&
   fi
   tmp2=()
   for tmp1 in "$pats[@]"; do
-    if [[ "$tmp1" = (#b)(?*)(\(\([^\|~]##\)\)) ]]; then
+    if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
       tmp2=( "$tmp2[@]" "${match[1]}((${tmp3}${match[2][3,-1]}" )
-    elif [[ "$tmp1" = (#b)(?*)(\([^\|~]##\)) ]]; then
+    elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then
       tmp2=( "$tmp2[@]" "${match[1]}(${tmp3}${match[2][2,-1]}" )
     else
       tmp2=( "$tmp2[@]" "${tmp1}(${tmp3})" )