diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_remote_files | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_remote_files b/Completion/Unix/Type/_remote_files index 54bd438eb..dbfb56134 100644 --- a/Completion/Unix/Type/_remote_files +++ b/Completion/Unix/Type/_remote_files @@ -38,9 +38,9 @@ if zstyle -T ":completion:${curcontext}:files" remote-access; then zparseopts -D -E -a args / g:=glob h:=host (( $#host)) && shift host || host="${IPREFIX%:}" - args=( ${argv[1,(I)--]} ) + args=( ${argv[1,(i)--]} ) shift ${#args} - args[-1]=() + [[ args[-1] = -- ]] && args[-1]=() # Command to run on the remote system. cmd="$1" shift |