diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:38:25 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:38:25 +0000 |
commit | fd25b24df6b4f098944c4994195d3894a27a8208 (patch) | |
tree | 53f7f940844ab34c7349506622fc8241c782f98c /Completion/Core/_history | |
parent | 4629133ad33dacef459ad9fa5ca438836a1be9fb (diff) | |
download | zsh-fd25b24df6b4f098944c4994195d3894a27a8208.tar.gz zsh-fd25b24df6b4f098944c4994195d3894a27a8208.tar.xz zsh-fd25b24df6b4f098944c4994195d3894a27a8208.zip |
use compadd -[ak] (11549)
Diffstat (limited to 'Completion/Core/_history')
-rw-r--r-- | Completion/Core/_history | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Core/_history b/Completion/Core/_history index 978a75400..86fd9efc5 100644 --- a/Completion/Core/_history +++ b/Completion/Core/_history @@ -16,7 +16,7 @@ # remove /all/ duplicate matches rather than just # consecutives -local opt expl +local opt expl h_words if zstyle -t ":completion:${curcontext}:" remove-all-dups; then opt=- @@ -32,5 +32,5 @@ fi # We skip the first element of historywords so the current word doesn't # interfere with the completion -_wanted "$opt" history-words expl 'history word' \ - compadd -Q - "${(@)historywords[2,-1]}" +h_words=( "${(@)historywords[2,-1]}" ) +_wanted "$opt" history-words expl 'history word' compadd -Q -a h_words |