diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-30 10:46:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-30 10:46:50 +0000 |
commit | 663fbdf4670a682c4c88e38c8eb695e919179513 (patch) | |
tree | 0b5218c72d70fc2c1d58f3e3cd19720ed6e6cd58 /Completion | |
parent | eb3252d67b6e5e34db76cd09f94427482480b2a1 (diff) | |
download | zsh-663fbdf4670a682c4c88e38c8eb695e919179513.tar.gz zsh-663fbdf4670a682c4c88e38c8eb695e919179513.tar.xz zsh-663fbdf4670a682c4c88e38c8eb695e919179513.zip |
23495: fix fall out from (R) change in completion system
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Completer/_ignored | 8 | ||||
-rw-r--r-- | Completion/Base/Completer/_prefix | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/Completion/Base/Completer/_ignored b/Completion/Base/Completer/_ignored index 1ae2e2846..00dfc42f4 100644 --- a/Completion/Base/Completer/_ignored +++ b/Completion/Base/Completer/_ignored @@ -5,9 +5,13 @@ [[ _matcher_num -gt 1 || $compstate[ignored] -eq 0 ]] && return 1 local comp +integer ind -zstyle -a ":completion:${curcontext}:" completer comp || - comp=( "${(@)_completers[1,_completer_num-1][(R)_ignored(|:*),-1]}" ) +if ! zstyle -a ":completion:${curcontext}:" completer comp; then + comp=( "${(@)_completers[1,_completer_num-1]}" ) + ind=${comp[(I)_ignored(|:*)]} + (( ind )) && comp=("${(@)comp[ind,-1]}") +fi local _comp_no_ignore=yes tmp expl \ _completer _completer_num \ diff --git a/Completion/Base/Completer/_prefix b/Completion/Base/Completer/_prefix index c17b381e3..74be5f47d 100644 --- a/Completion/Base/Completer/_prefix +++ b/Completion/Base/Completer/_prefix @@ -7,9 +7,13 @@ local comp curcontext="$curcontext" tmp suf="$SUFFIX" \ _completer \ _matcher _c_matcher _matchers _matcher_num +integer ind -zstyle -a ":completion:${curcontext}:" completer comp || - comp=( "${(@)_completers[1,_completer_num-1][(R)_prefix(|:*),-1]}" ) +if ! zstyle -a ":completion:${curcontext}:" completer comp; then + comp=( "${(@)_completers[1,_completer_num-1]}" ) + ind=${comp[(I)_prefix(|:*)]} + (( ind )) && comp=("${(@)comp[ind,-1]}") +fi if zstyle -t ":completion:${curcontext}:" add-space; then ISUFFIX=" $SUFFIX" |