diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-09-08 11:17:20 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-09-08 11:17:20 +0000 |
commit | b26ec00df5054a9cef4b62ee48c351bbb0cf18f4 (patch) | |
tree | 87de5b6558ba513c7d5fb9d30bd05161f449ed60 | |
parent | 688f8b421244e4efaa6a6def242b2fa0bf5b74c5 (diff) | |
download | zsh-b26ec00df5054a9cef4b62ee48c351bbb0cf18f4.tar.gz zsh-b26ec00df5054a9cef4b62ee48c351bbb0cf18f4.tar.xz zsh-b26ec00df5054a9cef4b62ee48c351bbb0cf18f4.zip |
19044: typo in setting $saliases elements
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/parameter.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index fb3557754..4d2ef7788 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-08 Peter Stephenson <pws@csr.com> + + * 19044: Src/Modules/parameter.c: several typos in code + to assign suffix aliases using the parameter saliases. + 2003-09-03 Oliver Kiddle <opk@zsh.org> * 19021: Completion/Zsh/Command/_cd: in command position, diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c index dc92aaaf8..8e70e111d 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c @@ -1617,7 +1617,7 @@ scanpmuserdirs(HashTable ht, ScanFunc func, int flags) static void setalias(HashTable ht, Param pm, char *value, int flags) { - ht->addnode(aliastab, ztrdup(pm->nam), + ht->addnode(ht, ztrdup(pm->nam), createaliasnode(value, flags)); } @@ -1646,21 +1646,21 @@ setpmgalias(Param pm, char *value) static void setpmdisgalias(Param pm, char *value) { - setgalias(aliastab, pm, value, ALIAS_GLOBAL|DISABLED); + setalias(aliastab, pm, value, ALIAS_GLOBAL|DISABLED); } /**/ static void setpmsalias(Param pm, char *value) { - setgalias(sufaliastab, pm, value, 0); + setalias(sufaliastab, pm, value, ALIAS_SUFFIX); } /**/ static void setpmdissalias(Param pm, char *value) { - setgalias(sufaliastab, pm, value, DISABLED); + setalias(sufaliastab, pm, value, ALIAS_SUFFIX|DISABLED); } /**/ |