diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-25 00:21:44 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-25 00:21:44 +0000 |
commit | d8f703027345170c7bc820ed7808e693dd1377d6 (patch) | |
tree | f9b1b6ad59f19577c0e1c5b6357cb869b4bebfba /Src/Zle/compresult.c | |
parent | d770c43f14ef6e559aa16da1c1408e006bb2a137 (diff) | |
download | zsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.gz zsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.xz zsh-d8f703027345170c7bc820ed7808e693dd1377d6.zip |
zsh-3.1.6-dev-20 zsh-3.1.6-dev-20
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 0d93b8727..c8aa96f22 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1102,6 +1102,22 @@ do_ambig_menu(void) minfo.cur = mc; } +/* Return the real number of matches. */ + +/**/ +zlong +num_matches(int normal) +{ + int alt; + + alt = permmatches(0); + + if (normal) + return (alt ? 0 : nmatches); + else + return (alt ? nmatches : 0); +} + /* Return the number of screen lines needed for the list. */ /**/ |