summary refs log tree commit diff
path: root/Completion/compinit
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:40:36 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:40:36 +0100
commit347a63da0cf1c681ac97c21a107b4722abf449b2 (patch)
treeeb91735a2bb171a5f092c374e5a84f3e1ad7008f /Completion/compinit
parentfdf2867e5f08809ff3fccc78fb6df13a196e3efc (diff)
downloadzsh-347a63da0cf1c681ac97c21a107b4722abf449b2.tar.gz
zsh-347a63da0cf1c681ac97c21a107b4722abf449b2.tar.xz
zsh-347a63da0cf1c681ac97c21a107b4722abf449b2.zip
31465: fix basic completion and globbing uses of disabled patterns
Diffstat (limited to 'Completion/compinit')
-rw-r--r--Completion/compinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/compinit b/Completion/compinit
index 7b8a34619..f9d2c574c 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -163,8 +163,9 @@ _comp_options=(
 
 typeset -g _comp_setup='local -A _comp_caller_options;
              _comp_caller_options=(${(kv)options[@]});
-             setopt localoptions localtraps ${_comp_options[@]};
+             setopt localoptions localtraps localpatterns ${_comp_options[@]};
              local IFS=$'\'\ \\t\\r\\n\\0\''
+             enable -p \| \~ \( \? \* \[ \< \^ \#
              exec </dev/null;
              trap - ZERR
              local -a reply