summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-10-10 22:38:40 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-10-10 22:38:40 +0000
commit14ed1900875b6d15f13720379e80bde77d3798fc (patch)
tree9b5e2bc25310d3acebbff26194ab71674d47586b /Completion
parentca06d8e30873095048df551807141835ec6e49bb (diff)
downloadzsh-14ed1900875b6d15f13720379e80bde77d3798fc.tar.gz
zsh-14ed1900875b6d15f13720379e80bde77d3798fc.tar.xz
zsh-14ed1900875b6d15f13720379e80bde77d3798fc.zip
allow - before first argument of tar
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_tar2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar
index f24605b3c..2958b5957 100644
--- a/Completion/Unix/Command/_tar
+++ b/Completion/Unix/Command/_tar
@@ -154,6 +154,8 @@ elif [[ ( "$_tar_cmd" = *[xt]* || -n $del ) && -n "$tf" ]]; then
 
   _wanted files expl 'file from archive' _multi_parts / _tar_cache_list
 elif (( CURRENT == 2 )); then
+  # ignore leading - since we complete option letters anyway
+  compset -P -
   _values -s '' 'tar function' \
     '(c t u x)A[append to an archive]' \
     '(A t u x)c[create a new archive]' \