diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-01-15 09:11:31 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-01-15 09:11:31 +0000 |
| commit | ca585f812b02071cc261fb9dbe463bab6f8be602 (patch) | |
| tree | e90c1af1169132098b62207ced35fdf83607e910 /Completion/Core/_compalso | |
| parent | fix for 13339 (report each position only once) and fixlet for matching: a cas... (diff) | |
| download | zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar.gz zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar.bz2 zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar.lz zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar.xz zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.tar.zst zsh-ca585f812b02071cc261fb9dbe463bab6f8be602.zip | |
add `services', allowing easier re-use of (parts of) completion functions (13346)
Diffstat (limited to 'Completion/Core/_compalso')
| -rw-r--r-- | Completion/Core/_compalso | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Core/_compalso b/Completion/Core/_compalso index 8df6b4a6f..5307bf30c 100644 --- a/Completion/Core/_compalso +++ b/Completion/Core/_compalso @@ -7,11 +7,11 @@ # `_compalso -math-' to get the completions that would be generated for a # mathematical context. -local i tmp ret=1 +local i tmp ret=1 service for i; do - tmp="$_comps[$1]" - [[ -z "$tmp" ]] || "$tmp" && ret=0 + tmp="$_comps[$i]" + [[ -z "$tmp" ]] || service="${_services[$i]:-$i}" && "$tmp" && ret=0 done return ret |
