mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
users/18335: avoid passing to "functions" those typeset options that it does not accept
This commit is contained in:
parent
23f98c3e1d
commit
4777c07c8e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-01-19 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* users/18335: Completion/Zsh/Command/_typeset: avoid passing to
|
||||
"functions" those typeset options that it does not accept
|
||||
|
||||
2014-01-18 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 32285: Src/mem.c (freeheap): when the last-arena-with-free-space
|
||||
|
|
|
@ -91,13 +91,13 @@ if [[ "$state" = vars_eq ]]; then
|
|||
_wanted functions expl 'shell function' compadd -a args
|
||||
elif [[ -n $onopts$offopts ]]; then
|
||||
if [[ -n $offopts ]]; then
|
||||
args=(${(f)"$(functions +$offopts)"})
|
||||
args=(${(f)"$(functions +${offopts//[^UXkmtTuz]/})"})
|
||||
else
|
||||
args=(${(k)functions})
|
||||
fi
|
||||
if [[ -n $onopts ]]; then
|
||||
local -a funckeys
|
||||
funckeys=(${(f)"$(functions +$onopts)"})
|
||||
funckeys=(${(f)"$(functions +${onopts//[^UXkmtTuz]/})"})
|
||||
args=(${args:|funckeys})
|
||||
fi
|
||||
if zstyle -t ":completion:${curcontext}:functions" prefix-needed &&
|
||||
|
|
Loading…
Reference in a new issue