summary refs log tree commit diff
path: root/Completion/Core
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 /Completion/Core
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 'Completion/Core')
-rw-r--r--Completion/Core/_main_complete7
1 files changed, 7 insertions, 0 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index 7c1135959..cf2cbb808 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -200,6 +200,13 @@ elif [[ nm -eq 0 &&
   fi
 fi
 
+if zstyle -s ":completion:${curcontext}:" force-list tmp &&
+   [[ "$compstate[list]" = *list* && 
+      ( "$tmp" = always ||
+        ( "$tmp" = [0-9]## && nm -ge tmp ) ) ]]; then
+  compstate[list]="$compstate[list] force"
+fi
+
 # Now call the post-functions.
 
 funcs=( "$comppostfuncs[@]" )