diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-10 14:47:55 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-10 14:47:55 +0000 |
commit | 188e6569dbb250b25bf3fe74b9d13007d5207b51 (patch) | |
tree | bbc3c0b5f636f5887aa5cf52c8b0a75b4cccf353 /Completion/Commands | |
parent | d5d015115cda8eed53b668ee325f12b2dd863383 (diff) | |
download | zsh-188e6569dbb250b25bf3fe74b9d13007d5207b51.tar.gz zsh-188e6569dbb250b25bf3fe74b9d13007d5207b51.tar.xz zsh-188e6569dbb250b25bf3fe74b9d13007d5207b51.zip |
manual/8992
Diffstat (limited to 'Completion/Commands')
-rw-r--r-- | Completion/Commands/_history_complete_word | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Commands/_history_complete_word b/Completion/Commands/_history_complete_word index 08fc1ea79..7867189e8 100644 --- a/Completion/Commands/_history_complete_word +++ b/Completion/Commands/_history_complete_word @@ -25,9 +25,9 @@ _history_complete_word () { direction=older fi - _style -s history-words stop stop + zstyle -s ":completion${curcontext}:history-words" stop stop - _style history-words list || compstate[list]='' + zstyle -t ":completion${curcontext}:history-words" list || compstate[list]='' if [[ -n "$compstate[old_list]" && ( -n "$stop" || "$compstate[insert]" = menu ) ]] ; then @@ -67,14 +67,14 @@ _history_complete_word () { } _history_complete_word_gen_matches () { - if _style history-words list; then - if _style history-words sort; then + if zstyle -t ":completion${curcontext}:history-words" list; then + if zstyle -t ":completion${curcontext}:history-words" sort; then _description history-words expl 'history word' else _description -V history-words expl 'history word' fi else - if _style history-words sort; then + if zstyle -t ":completion${curcontext}:history-words" sort; then expl=() else expl=('-V' '') @@ -84,7 +84,7 @@ _history_complete_word_gen_matches () { [[ -n "$_hist_stop" ]] && PREFIX="$_hist_old_prefix" local rem_dups - if _style history-words remove-all-dups; then + if zstyle -t ":completion${curcontext}:history-words" remove-all-dups; then rem_dups='' else rem_dups='-1' |