mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-02 08:51:18 +02:00
12112: Don't make namedirs out of hash elements.
This commit is contained in:
parent
4c7469778a
commit
d38f54a928
@ -1,3 +1,7 @@
|
||||
2000-06-28 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 12112: Src/params.c: Don't make namedirs out of hash elements.
|
||||
|
||||
2000-06-28 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 12109: Completion/Core/_complete: make _complete return the
|
||||
|
@ -2020,6 +2020,7 @@ unsetparam_pm(Param pm, int altflag, int exp)
|
||||
oldpm = pm->old;
|
||||
paramtab->addnode(paramtab, oldpm->nam, oldpm);
|
||||
if ((PM_TYPE(oldpm->flags) == PM_SCALAR) &&
|
||||
!(pm->flags & PM_HASHELEM) &&
|
||||
oldpm->sets.cfn == strsetfn)
|
||||
adduserdir(oldpm->nam, oldpm->u.str, 0, 0);
|
||||
if (oldpm->flags & PM_EXPORTED) {
|
||||
@ -2104,6 +2105,7 @@ strsetfn(Param pm, char *x)
|
||||
{
|
||||
zsfree(pm->u.str);
|
||||
pm->u.str = x;
|
||||
if (!(pm->flags & PM_HASHELEM))
|
||||
adduserdir(pm->nam, x, 0, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user