diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
commit | 35b2633ad941966f5fca07b625a594a5b68c0fdb (patch) | |
tree | b54740d014e594ba5d81931cdcdb3387bcf9dfca /Completion/Commands/_expand_word | |
parent | bb98460a01ce1f6c1e71f7e401f782c81b71486b (diff) | |
download | zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.gz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.xz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.zip |
manual/8639
Diffstat (limited to 'Completion/Commands/_expand_word')
-rw-r--r-- | Completion/Commands/_expand_word | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Completion/Commands/_expand_word b/Completion/Commands/_expand_word index d8f5f42f8..b4e22de48 100644 --- a/Completion/Commands/_expand_word +++ b/Completion/Commands/_expand_word @@ -5,25 +5,8 @@ # If configurations keys with the prefix `expandword_' are # given they override those starting with `expand_'. -local oes="$compconfig[expand_substitute]" -local oeg="$compconfig[expand_glob]" -local oem="$compconfig[expand_menu]" -local oeo="$compconfig[expand_original]" -local oep="$compconfig[expand_prompt]" -local oec="$compconfig[expand_completions]" +local curcontext="$curcontext" -compconfig[expand_substitute]="${compconfig[expandword_substitute]}" -compconfig[expand_glob]="${compconfig[expandword_glob]-$oeg}" -compconfig[expand_menu]="${compconfig[expandword_menu]-$oem}" -compconfig[expand_original]="${compconfig[expandword_original]-$oeo}" -compconfig[expand_prompt]="${compconfig[expandword_prompt]-$oep}" -compconfig[expand_completions]="${compconfig[expandword_completions]-$oec}" +[[ -z "$curcontext" ]] && curcontext=":expand-word" _main_complete _expand - -compconfig[expand_substitute]="$oes" -compconfig[expand_glob]="$oeg" -compconfig[expand_menu]="$oem" -compconfig[expand_original]="$oeo" -compconfig[expand_prompt]="$oep" -compconfig[expand_completions]="$oec" |