From 188e6569dbb250b25bf3fe74b9d13007d5207b51 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 10 Dec 1999 14:47:55 +0000 Subject: manual/8992 --- Completion/Commands/_history_complete_word | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Commands') 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' -- cgit 1.4.1