From a2deb3854abfa4ef29fa35ab280399b10a17161a Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 28 Jan 2002 16:34:12 +0000 Subject: slight improvement for 16500 to allow completion after ./ in all cases (16507) --- Completion/Zsh/Type/_command_names | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names index 71c3adfd2..613f1fe59 100644 --- a/Completion/Zsh/Type/_command_names +++ b/Completion/Zsh/Type/_command_names @@ -10,15 +10,10 @@ defs=( 'commands:external command:compadd -k commands' ) -if [[ -n "$path[(r).]" ]]; then +[[ -n "$path[(r).]" || $PREFIX = */* ]] && defs=( "$defs[@]" 'executables:executable file or directory:_path_files -/g \*\(-\*\)' ) -else - defs=( "$defs[@]" - 'executables:executable file or directory:_files -P/ -W/ -/g \*\(-\*\)' - ) -fi if [[ "$1" = -e ]]; then shift -- cgit 1.4.1