From 84b0a3076bb297c5965ec66ea6227c2f25ae4d92 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 31 Oct 1999 06:40:06 +0000 Subject: zsh-workers/8472 --- Src/Zle/zleparameter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle/zleparameter.c') diff --git a/Src/Zle/zleparameter.c b/Src/Zle/zleparameter.c index dc778eb08..d6fccec6b 100644 --- a/Src/Zle/zleparameter.c +++ b/Src/Zle/zleparameter.c @@ -145,7 +145,8 @@ scanpmwidgets(HashTable ht, ScanFunc func, int flags) for (i = 0; i < thingytab->hsize; i++) for (hn = thingytab->nodes[i]; hn; hn = hn->next) { pm.nam = hn->nam; - if (func != scancountparams) + if (func != scancountparams && + (flags & (SCANPM_WANTVALS|SCANPM_MATCHVAL))) pm.u.str = widgetstr(((Thingy) hn)->widget); func((HashNode) &pm, flags); } -- cgit 1.4.1