Index: Completion/Zsh/Context/_redirect =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Context/_redirect,v retrieving revision 1.3 diff -u -r1.3 _redirect --- Completion/Zsh/Context/_redirect 13 Mar 2002 09:28:05 -0000 1.3 +++ Completion/Zsh/Context/_redirect 10 Jan 2010 18:08:50 -0000 @@ -6,11 +6,13 @@ strs=( -default- ) -if [[ -n "$_comp_command1" ]]; then - strs=( "${_comp_command1}" "$strs[@]" ) - [[ -n "$_comp_command2" ]] && +if [[ "$CURRENT" != "1" ]]; then + strs=( "${_comp_command}" "$strs[@]" ) + if [[ -n "$_comp_command1" ]]; then + strs=( "${_comp_command1}" "$strs[@]" ) + [[ -n "$_comp_command2" ]] && strs=( "${_comp_command2}" "$strs[@]" ) + fi fi -_dispatch -redirect-,${compstate[redirect]},${_comp_command} \ - -redirect-,{${compstate[redirect]},-default-},${^strs} +_dispatch -redirect-,{${compstate[redirect]},-default-},${^strs}