mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-26 22:10:45 +02:00
Use ksh-style deref of $_comp_options in case of ksharrays.
This commit is contained in:
parent
9ccaaa40eb
commit
43e41bcbc7
11
ChangeLog
11
ChangeLog
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#compdef -k complete-word \C-x?
|
||||
|
||||
setopt localoptions $_comp_options
|
||||
setopt localoptions ${_comp_options[@]}
|
||||
|
||||
setopt localtraps noerrexit ; trap - ZERR
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# Simple completion front-end implementing expansion.
|
||||
|
||||
setopt localoptions $_comp_options
|
||||
setopt localoptions ${_comp_options[@]}
|
||||
|
||||
local curcontext="$curcontext"
|
||||
|
||||
|
@ -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
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Main widget.
|
||||
|
||||
_next_tags() {
|
||||
setopt localoptions $_comp_options
|
||||
setopt localoptions ${_comp_options[@]}
|
||||
|
||||
local ins ops="$PREFIX$SUFFIX"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user