diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-24 16:15:15 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-24 16:15:18 +0000 |
| commit | 4c935b9f85d25999a2ff9844274827f7905380f3 (patch) | |
| tree | 8f797af7a1d4efad8a8aebc10d33c75b2b623622 /Completion/Unix/Command/_hg | |
| parent | 36613: _hg: extend completion for hg push to support branch and bookmark (diff) | |
| download | zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar.gz zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar.bz2 zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar.lz zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar.xz zsh-4c935b9f85d25999a2ff9844274827f7905380f3.tar.zst zsh-4c935b9f85d25999a2ff9844274827f7905380f3.zip | |
unposted: _hg: Declare $expl as an array
Diffstat (limited to 'Completion/Unix/Command/_hg')
| -rw-r--r-- | Completion/Unix/Command/_hg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg index 2db5c55a5..9dd023653 100644 --- a/Completion/Unix/Command/_hg +++ b/Completion/Unix/Command/_hg @@ -163,21 +163,21 @@ _hg_revrange() { } _hg_tags_internal() { - local expl + local -a expl typeset -a hgtags hgtags=( ${(f)"$(_hg_cmd tags -q 2>/dev/null)"} ) _wanted tags expl 'tags' compadd -a - hgtags } _hg_bookmarks_internal() { - local expl + local -a expl typeset -a hgbookmarks hgbookmarks=( ${(f)"$(_hg_cmd bookmarks -q 2>/dev/null)"} ) _wanted bookmarks expl 'bookmarks' compadd -a - hgbookmarks } _hg_branches_internal() { - local expl + local -a expl typeset -a hgbranches hgbranches=( ${(f)"$(_hg_cmd branches -q 2>/dev/null)"} ) _wanted branches expl 'branches' compadd -a - hgbranches |
