From 805a11bddf4298b31c6bb2d70e4ea33674a6be16 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 5 Aug 2009 00:28:34 +0000 Subject: 27208: try to do the right thing when applying file-sort to extant glob qualifiers. --- Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 63713eff7..ab6684da8 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -160,7 +160,7 @@ if zstyle -s ":completion:${curcontext}:" file-sort tmp1; then if _have_glob_qual "$tmp1" complete; then # unbalanced parenthesis is correct: match[1] contains the start, # match[5] doesn't contain the end. - tmp2+=( "${match[1]}${sort}${match[5]})" ) + tmp2+=( "${match[1]}${match[5]})(${sort})" ) else tmp2+=( "${tmp1}(${sort})" ) fi -- cgit 1.4.1