mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
19767, 19785: store flags for -z and -k options to autoload allowing the
completion system to be used with ksh_autoload set
This commit is contained in:
parent
8c890ebe7f
commit
ca0deae382
13 changed files with 116 additions and 80 deletions
|
|
@ -3398,8 +3398,12 @@ loadautofn(Shfunc shf, int fksh, int autol)
|
|||
prog = getfpfunc(shf->nam, &ksh);
|
||||
noaliases = noalias;
|
||||
|
||||
if (ksh == 1)
|
||||
if (ksh == 1) {
|
||||
ksh = fksh;
|
||||
if (ksh == 1)
|
||||
ksh = (shf->flags & PM_KSHSTORED) ? 2 :
|
||||
(shf->flags & PM_ZSHSTORED) ? 0 : 1;
|
||||
}
|
||||
|
||||
if (prog == &dummy_eprog) {
|
||||
/* We're not actually in the function; decrement locallevel */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue