about summary refs log tree commit diff
path: root/Completion/Base/Core/_description
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-02-28 18:45:35 +0000
committerPeter Stephenson <pws@zsh.org>2014-02-28 18:45:35 +0000
commitf798f13b0eba1f31cd2d760441ac9d36a6ac5263 (patch)
tree2015479d9fcda696f4b91235bc21bf539ebb6a7c /Completion/Base/Core/_description
parent52f72086c93d4b5faec06665bc352246d3f4ec3f (diff)
parent7d7242405a82332716b5fdba68f32ecabf6349be (diff)
downloadzsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.tar.gz
zsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.tar.xz
zsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.zip
Fix merge conflict
Diffstat (limited to 'Completion/Base/Core/_description')
-rw-r--r--Completion/Base/Core/_description16
1 files changed, 9 insertions, 7 deletions
diff --git a/Completion/Base/Core/_description b/Completion/Base/Core/_description
index 3d993271c..304c747a6 100644
--- a/Completion/Base/Core/_description
+++ b/Completion/Base/Core/_description
@@ -47,17 +47,19 @@ if [[ -z "$_comp_no_ignore" ]]; then
   zstyle -a ":completion:${curcontext}:$1" ignored-patterns _comp_ignore ||
     _comp_ignore=()
 
-  zstyle -s ":completion:${curcontext}:$1" ignore-line hidden &&
+  if zstyle -s ":completion:${curcontext}:$1" ignore-line hidden; then
+    local -a qwords
+    qwords=( ${words//(#m)[\[\]()\\*?#<>~\^\|]/\\$MATCH} )
     case "$hidden" in
-    true|yes|on|1) _comp_ignore=( "$_comp_ignore[@]" ${(q)"${words[@]}"} );;
-    current)       _comp_ignore=( "$_comp_ignore[@]" "${(q)words[CURRENT]}" );;
+    true|yes|on|1) _comp_ignore+=( $qwords );;
+    current)       _comp_ignore+=( $qwords[CURRENT] );;
     current-shown)
 	    [[ "$compstate[old_list]" = *shown* ]] &&
-            _comp_ignore=( "$_comp_ignore[@]" "${(q)words[CURRENT]}" );;
-    other)         _comp_ignore=( "$_comp_ignore[@]"
-                                  "${(@q)words[1,CURRENT-1]}"
-				  "${(@q)words[CURRENT+1,-1]}" );;
+            _comp_ignore+=( $qwords[CURRENT] );;
+    other)         _comp_ignore+=( $qwords[1,CURRENT-1]
+				   $qwords[CURRENT+1,-1] );;
     esac
+  fi
 
   # Ensure the ignore option is first so we can override it
   # for fake-always.