From 0ddb4fb835d685b5dc71dadc08d5758a28b99439 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 3 Jul 2000 08:05:27 +0000 Subject: change format style with warnings tag, don't add descriptions as matches; make a-a-i-n-h in menu selection work even without matches (12134) --- Src/Zle/compcore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 895267535..1a1241853 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -350,8 +350,9 @@ do_completion(Hookdef dummy, Compldat dat) if (comppatmatch && *comppatmatch && comppatmatch != opm) haspattern = 1; if (iforcemenu) { - do_ambig_menu(); - ret = 0; + if (nmatches) + do_ambig_menu(); + ret = !nmatches; } else if (useline < 0) ret = selfinsert(zlenoargs); else if (!useline && uselist) { @@ -511,6 +512,7 @@ after_complete(Hookdef dummy, int *dat) cdat.matches = amatches; cdat.num = nmatches; + cdat.nmesg = nmessages; cdat.cur = NULL; if ((ret = runhookdef(MENUSTARTHOOK, (void *) &cdat))) { dat[1] = 0; -- cgit v1.2.3