about summary refs log tree commit diff
path: root/Src/Zle/compctl.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-04 07:44:21 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-04 07:44:21 +0000
commit4414e16a6a958c39209f37f7f7a6fae6b1b78864 (patch)
treeb687f97b33167d38a881d207cb00b8d8331ead51 /Src/Zle/compctl.c
parent74106447f64bb1bfb71a3c95f249e4f9f97d4a86 (diff)
downloadzsh-4414e16a6a958c39209f37f7f7a6fae6b1b78864.tar.gz
zsh-4414e16a6a958c39209f37f7f7a6fae6b1b78864.tar.xz
zsh-4414e16a6a958c39209f37f7f7a6fae6b1b78864.zip
don't list when all matches look the same; force-list style to give users control over this (11140)
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r--Src/Zle/compctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index accd97c93..b443b7da5 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -1762,7 +1762,7 @@ ccmakehookfn(Hookdef dummy, struct ccmakedat *dat)
     struct cmlist ms;
     Cmlist m;
     char *os = s;
-    int onm = nmatches, osi = movefd(0);
+    int onm = nmatches, odm = diffmatches, osi = movefd(0);
     LinkNode n;
 
     /* We build a copy of the list of matchers to use to make sure that this
@@ -1843,6 +1843,7 @@ ccmakehookfn(Hookdef dummy, struct ccmakedat *dat)
 
 	if (oldlist) {
 	    nmatches = onm;
+	    diffmatches = odm;
 	    validlist = 1;
 	    amatches = lastmatches;
 	    lmatches = lastlmatches;