about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-09 14:33:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-09 14:33:42 +0000
commit9d18eb9c7a88fb2af3f07beb7d2275126e32b8e4 (patch)
tree04848f37d2f8b346c2e3a8283b238c0340404625
parent825960a988353b304a8a584967da4b0e7a1e45f3 (diff)
downloadzsh-9d18eb9c7a88fb2af3f07beb7d2275126e32b8e4.tar.gz
zsh-9d18eb9c7a88fb2af3f07beb7d2275126e32b8e4.tar.xz
zsh-9d18eb9c7a88fb2af3f07beb7d2275126e32b8e4.zip
zsh-workers/7750
-rw-r--r--Completion/Base/_arguments4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 6597c531f..591f49a6a 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -57,6 +57,8 @@ if [[ "$*" != "$_args_cache_descr" ]]; then
       # We have to build the long-option cache anew, get the `-i' and
       # `-s' options.
 
+      set -- "${(@)argv[nth+1,-1]}"
+
       iopts=()
       sopts=()
       while [[ "$1" = -[is]* ]]; do
@@ -105,7 +107,7 @@ if [[ "$*" != "$_args_cache_descr" ]]; then
       # ... and add "same" options
 
       while (( $#sopts )); do
-        lopts=( $lopts ${opts/$sopts[1]/$sopts[2]} )
+        lopts=( $lopts ${lopts/$sopts[1]/$sopts[2]} )
         shift 2 sopts
       done