From 9ac1ee5703520f3bc34afff8ef009a0a8dceca33 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 7 Jun 2000 08:39:56 +0000 Subject: hopefully more consistent beeping with menu-selection (11794) --- Src/Zle/compcore.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 94f441229..ad048718d 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -500,16 +500,17 @@ before_complete(Hookdef dummy, int *lst) /**/ int -after_complete(Hookdef dummy, Compldat dat) +after_complete(Hookdef dummy, int *dat) { if (menucmp && !oldmenucmp) { - struct chdata dat; + struct chdata cdat; int ret; - dat.matches = amatches; - dat.num = nmatches; - dat.cur = NULL; - if ((ret = runhookdef(MENUSTARTHOOK, (void *) &dat))) { + cdat.matches = amatches; + cdat.num = nmatches; + cdat.cur = NULL; + if ((ret = runhookdef(MENUSTARTHOOK, (void *) &cdat))) { + dat[1] = 0; menucmp = menuacc = 0; if (ret == 2) { fixsuffix(); -- cgit 1.4.1