diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-07-03 08:05:27 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-07-03 08:05:27 +0000 |
commit | 0ddb4fb835d685b5dc71dadc08d5758a28b99439 (patch) | |
tree | 466c89b29279f1d9459e1c663a68154830cb293b /Src/Zle/compcore.c | |
parent | 4ed8c26c50dea84a01903e6d80b68701d9c4f3c0 (diff) | |
download | zsh-0ddb4fb835d685b5dc71dadc08d5758a28b99439.tar.gz zsh-0ddb4fb835d685b5dc71dadc08d5758a28b99439.tar.xz zsh-0ddb4fb835d685b5dc71dadc08d5758a28b99439.zip |
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)
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |