diff options
| author | Oliver Kiddle <opk@zsh.org> | 2016-09-12 23:26:14 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2016-09-12 23:26:14 +0200 |
| commit | 98581594b50d7b0c9fc3cb885028522b14a88304 (patch) | |
| tree | ff34b153a75ff6a33a66e7bf301e0259e58802d2 | |
| parent | 39287: add .tif as a valid extension for TIFF files (diff) | |
| download | zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar.gz zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar.bz2 zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar.lz zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar.xz zsh-98581594b50d7b0c9fc3cb885028522b14a88304.tar.zst zsh-98581594b50d7b0c9fc3cb885028522b14a88304.zip | |
39295: allow -- to appear in the command line passed as an argument
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Completion/Unix/Type/_remote_files | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2016-09-12 Oliver Kiddle <opk@zsh.org> + * 39295: Completion/Unix/Type/_remote_files: allow '--' to + appear in the command line passed as an argument + * 39287: Completion/Unix/Command/_graphicsmagick, Completion/Unix/Command/_imagemagick, Completion/X/Command/_okular: add .tif as a valid extension for TIFF files 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 |
