1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-27 02:16:22 +02:00

Use ksh-style deref of $_comp_options in case of ksharrays.

This commit is contained in:
Bart Schaefer 2001-02-28 16:55:27 +00:00
parent 9ccaaa40eb
commit 43e41bcbc7
8 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,14 @@
2001-02-28 Bart Schaefer <schaefer@zsh.org>
* users/3649: Completion/Commands/_bash_completions,
Completion/Commands/_complete_debug,
Completion/Commands/_complete_help,
Completion/Commands/_correct_word,
Completion/Commands/_expand_word,
Completion/Commands/_history_complete_word,
Completion/Commands/_next_tags: Same as 13555 below, but for all
the other places where $_comp_options was referenced.
2001-02-28 Oliver Kiddle <opk@zsh.org>
* 13555: Completion/Core/_main_complete: handle ksh_arrays on the

View File

@ -25,7 +25,7 @@
# that will not have been overridden, so you should add '~' to the
# list of keys at the top of the for-loop.
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
local key=$KEYS[-1] expl

View File

@ -1,6 +1,6 @@
#compdef -k complete-word \C-x?
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
setopt localtraps noerrexit ; trap - ZERR

View File

@ -1,7 +1,7 @@
#compdef -k complete-word \C-xh
_complete_help() {
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
exec </dev/null # ZLE closes stdin, which can cause errors

View File

@ -7,7 +7,7 @@
# If configurations keys with the prefix `correctword_' are
# given they override those starting with `correct_'.
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
local curcontext="$curcontext"

View File

@ -2,7 +2,7 @@
# Simple completion front-end implementing expansion.
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
local curcontext="$curcontext"

View File

@ -16,7 +16,7 @@
# range -- range of history words to complete
_history_complete_word () {
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
local expl direction stop curcontext="$curcontext"
local max slice hmax=$#historywords

View File

@ -3,7 +3,7 @@
# Main widget.
_next_tags() {
setopt localoptions $_comp_options
setopt localoptions ${_comp_options[@]}
local ins ops="$PREFIX$SUFFIX"