From 052316fea3b74599de04fb3990a444b0ba08b04b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 16 Jan 2001 12:39:21 +0000 Subject: fix for ol' compctl when completing hash keys (13364) --- Src/Zle/compctl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src/Zle/compctl.c') 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; } -- cgit 1.4.1