diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-04 07:44:21 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-04 07:44:21 +0000 |
commit | 4414e16a6a958c39209f37f7f7a6fae6b1b78864 (patch) | |
tree | b687f97b33167d38a881d207cb00b8d8331ead51 /Completion/Core | |
parent | 74106447f64bb1bfb71a3c95f249e4f9f97d4a86 (diff) | |
download | zsh-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_complete | 7 |
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[@]" ) |