mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
19044: typo in setting $saliases elements
This commit is contained in:
parent
688f8b4212
commit
b26ec00df5
2 changed files with 9 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**/
|
||||
|
|
Loading…
Reference in a new issue