about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-12-20 05:30:28 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-12-20 05:43:42 +0000
commit4b55c0f40c21a6e57fc8e71515c3f39df6a30f67 (patch)
tree5ca6f5375c1d7147838a3c4a2e17a6b24186723a /Src
parenta254c1815aac155108f8729ed7929e42f6f2c8b0 (diff)
downloadzsh-4b55c0f40c21a6e57fc8e71515c3f39df6a30f67.tar.gz
zsh-4b55c0f40c21a6e57fc8e71515c3f39df6a30f67.tar.xz
zsh-4b55c0f40c21a6e57fc8e71515c3f39df6a30f67.zip
42146: type -w += global aliases
Follow-up to 36403, which did the same for suffix aliases.
Diffstat (limited to 'Src')
-rw-r--r--Src/hashtable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c
index 6ec2ed220..b7baa3142 100644
--- a/Src/hashtable.c
+++ b/Src/hashtable.c
@@ -1261,6 +1261,8 @@ printaliasnode(HashNode hn, int printflags)
     if (printflags & PRINT_WHENCE_WORD) {
 	if (a->node.flags & ALIAS_SUFFIX)
 	    printf("%s: suffix alias\n", a->node.nam);
+	else if (a->node.flags & ALIAS_GLOBAL)
+	    printf("%s: global alias\n", a->node.nam);
 	else
 	    printf("%s: alias\n", a->node.nam);
 	return;