From f641f0b1e827d8fa44c1c7ec31bee51396d30317 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 7 Feb 2013 19:51:27 +0000 Subject: Han Pingtian: 31027: remove the -g's from globs in file completion --- Completion/Unix/Type/_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_files') diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index 0a2715814..0f6fcd6ff 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -8,7 +8,7 @@ zparseopts -a opts \ type="${(@j::M)${(@)tmp#-}#?}" if (( $tmp[(I)-g*] )); then - glob="${${${${(@M)tmp:#-g*}#-g}##[[:blank:]]#}%%[[:blank:]]#}" + glob="${${${(@)${(@M)tmp:#-g*}#-g}##[[:blank:]]#}%%[[:blank:]]#}" [[ "$glob" = *[^\\][[:blank:]]* ]] && glob="{${glob//(#b)([^\\])[[:blank:]]##/${match[1]},}}" -- cgit 1.4.1