From 881d24cd48b4c659760961991e0f029900c54a8e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 17 Nov 1999 09:57:16 +0000 Subject: manual/8654 --- Completion/Base/_describe | 18 ++++++------------ Completion/Base/_first | 2 +- Completion/Base/_regex_arguments | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/_describe b/Completion/Base/_describe index 181ccbfcb..f1fbbafc6 100644 --- a/Completion/Base/_describe +++ b/Completion/Base/_describe @@ -2,21 +2,15 @@ # This can be used to add options or values with descriptions as matches. -local _cmd _opt _expl _tmps _tmpd _tmpmd _tmpms _ret=1 _showd _nm _hide _args +local _opt _expl _tmps _tmpd _tmpmd _tmpms _ret=1 _showd _nm _hide _args local _type=values -_cmd="$words[1]" +# Get the option. -# Get the options. - -while getopts 'oc:' _opt; do - if [[ "$_opt" = o ]]; then - _type=options - else - _cmd="$OPTARG" - fi -done -shift OPTIND-1 +if [[ "$1" = -o ]]; then + _type=options + shift +fi # Do the tests. `showd' is set if the descriptions should be shown. diff --git a/Completion/Base/_first b/Completion/Base/_first index 7c070d743..0e281d061 100644 --- a/Completion/Base/_first +++ b/Completion/Base/_first @@ -50,7 +50,7 @@ # # We first search in the last ten words, then in the last # # twenty words, and so on... # while [[ i -le max ]]; do -# if _style history-entries sort; then +# if _style history-words sort; then # _description expl "history ($n)" # else # _description -V expl "history ($n)" diff --git a/Completion/Base/_regex_arguments b/Completion/Base/_regex_arguments index ba6d330da..918eafc5c 100644 --- a/Completion/Base/_regex_arguments +++ b/Completion/Base/_regex_arguments @@ -330,7 +330,7 @@ _regex_arguments () { local i state next local cache_dir - _style -s regex argument-path cache_dir + _style -s regex cache-path cache_dir [[ -z "$cache_dir" ]] && cache_dir="$HOME/.zsh/regex_arguments" local cache_file="$cache_dir/$1" local cache_test -- cgit 1.4.1