mirror of
https://github.com/zsh-users/zsh
synced 2024-09-15 22:20:22 +00:00
35635: a bit more consistency about making elements local
This commit is contained in:
parent
ef08028346
commit
eb08892dcf
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
2015-06-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2015-06-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 35635: Src/builtin.c: a bit more consistency about
|
||||||
|
making elements of things local.
|
||||||
|
|
||||||
* users/20281: Completion/Base/Core/_main_complete:
|
* users/20281: Completion/Base/Core/_main_complete:
|
||||||
don't require MULTIFUNCDEF as _main_complete is parsed
|
don't require MULTIFUNCDEF as _main_complete is parsed
|
||||||
before we can ensure it's set.
|
before we can ensure it's set.
|
||||||
|
|
|
@ -2325,7 +2325,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func),
|
||||||
zerrnam(cname,
|
zerrnam(cname,
|
||||||
"%s: can't create readonly array elements", pname);
|
"%s: can't create readonly array elements", pname);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else if (on & PM_LOCAL) {
|
} else if ((on & PM_LOCAL) && locallevel) {
|
||||||
*subscript = 0;
|
*subscript = 0;
|
||||||
pm = (Param) (paramtab == realparamtab ?
|
pm = (Param) (paramtab == realparamtab ?
|
||||||
gethashnode2(paramtab, pname) :
|
gethashnode2(paramtab, pname) :
|
||||||
|
|
Loading…
Reference in a new issue