about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-01-16 12:39:21 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-01-16 12:39:21 +0000
commit052316fea3b74599de04fb3990a444b0ba08b04b (patch)
tree6038f5ec35f37a871bafc7eea7c9a604de448613
parent4a39b5d9c5e21d100a778e94f6c2936528967210 (diff)
downloadzsh-052316fea3b74599de04fb3990a444b0ba08b04b.tar.gz
zsh-052316fea3b74599de04fb3990a444b0ba08b04b.tar.xz
zsh-052316fea3b74599de04fb3990a444b0ba08b04b.zip
fix for ol' compctl when completing hash keys (13364)
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compctl.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e8a1ea91b..be44b1a64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13364: Src/Zle/compctl.c: fix for ol' compctl when completing
+ 	hash keys
+	
 2001-01-15  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 13349: Src/Zle/compmatch.c, Src/Zle/compresult.c: two more fixes
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 052209ee3..019e774ac 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -3749,7 +3749,10 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
 	dumphashtable(aliastab, t | (cc->mask & (CC_DISCMDS|CC_EXCMDS)));
     if (keypm && cc == &cc_dummy) {
 	/* Add the keys of the parameter in keypm. */
-	scanhashtable(keypm->gets.hfn(keypm), 0, 0, PM_UNSET, addhnmatch, 0);
+	HashTable t = keypm->gets.hfn(keypm);
+
+	if (t)
+	    scanhashtable(t, 0, 0, PM_UNSET, addhnmatch, 0);
 	keypm = NULL;
 	cc_dummy.suffix = NULL;
     }