about summary refs log tree commit diff
path: root/Completion/Base/Completer/_expand
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-01-21 09:32:39 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-01-21 09:32:39 +0000
commit96427ce997aef8a6728854af60f6005a47f6e493 (patch)
tree817a548a15c09d3e0013d5e4030663946c70f463 /Completion/Base/Completer/_expand
parentf8d74c1aab6e72172b25caf5a4a15cbbdb46a4f2 (diff)
downloadzsh-96427ce997aef8a6728854af60f6005a47f6e493.tar.gz
zsh-96427ce997aef8a6728854af60f6005a47f6e493.tar.xz
zsh-96427ce997aef8a6728854af60f6005a47f6e493.zip
20730: fix suffix style to regard quoted special characters as not special
Diffstat (limited to 'Completion/Base/Completer/_expand')
-rw-r--r--Completion/Base/Completer/_expand2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/Completer/_expand b/Completion/Base/Completer/_expand
index 52d47b2d7..4bb9ab777 100644
--- a/Completion/Base/Completer/_expand
+++ b/Completion/Base/Completer/_expand
@@ -35,7 +35,7 @@ fi
 
 zstyle -T ":completion:${curcontext}:" suffix &&
   [[ "$word" = (\~*/*|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
-     "${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
+     "${(e)word}" != (#s)(*[^\\]|)[][^*?\(\)\<\>\{\}\|]* ]] &&
   return 1
 
 zstyle -s ":completion:${curcontext}:" accept-exact tmp ||