From 626e2aeb1657f112feb6d03c34bb9e9f44764c75 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 23 Mar 2000 04:19:26 +0000 Subject: zsh-workers/10195 --- Completion/Commands/_next_tags | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Completion/Commands') diff --git a/Completion/Commands/_next_tags b/Completion/Commands/_next_tags index 5cda547e8..818b73fe0 100644 --- a/Completion/Commands/_next_tags +++ b/Completion/Commands/_next_tags @@ -52,8 +52,13 @@ _next_tags() { _next_tags_sort() { local order tags tag nodef - zstyle -a ":completion:${curcontext}:" tag-order order || - order=( 'arguments values' options globbed-files directories all-files ) + if ! zstyle -a ":completion:${curcontext}:" tag-order order; then + if (( $+_comp_default_tags )); then + order=( "$_comp_default_tags[@]" ) + else + order=( 'arguments values' options ) + fi + fi # But we also remove the tags we've already tried... -- cgit 1.4.1