diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Builtins/_zstyle | 1 | ||||
-rw-r--r-- | Completion/Core/_main_complete | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Builtins/_zstyle b/Completion/Builtins/_zstyle index a2a19320d..1edd0987f 100644 --- a/Completion/Builtins/_zstyle +++ b/Completion/Builtins/_zstyle @@ -25,6 +25,7 @@ styles=( expand c: file-patterns c:filepat file-sort c:fsort + force-list c format c: glob c: group-name c: 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[@]" ) |