about summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-23 06:47:32 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-24 07:22:16 +0000
commit0f8725beeb6b1273a5064f20ed0dd2c160c2a564 (patch)
tree62918657eda25d70f89d1010c1ee28bdfbaf343b /Completion/Zsh/Command
parent889f6690fd678ed2fdeb4d467e5b8db49b9c6667 (diff)
downloadzsh-0f8725beeb6b1273a5064f20ed0dd2c160c2a564.tar.gz
zsh-0f8725beeb6b1273a5064f20ed0dd2c160c2a564.tar.xz
zsh-0f8725beeb6b1273a5064f20ed0dd2c160c2a564.zip
39423: _zed: Support the '--' end-of-options mark.
This matters for fned'ing vcs_info hooks.
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_zed8
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Zsh/Command/_zed b/Completion/Zsh/Command/_zed
index 184234b02..211dae7df 100644
--- a/Completion/Zsh/Command/_zed
+++ b/Completion/Zsh/Command/_zed
@@ -1,7 +1,9 @@
 #compdef zed fned
 
 case $service in
-(fned) _arguments ':shell function:_functions';;
-(zed) _arguments '(-):file:_files' \
-	'(:)-f[edit function]:shell function:_functions';;
+(fned) _arguments -S : ':shell function:_functions';;
+(zed) _arguments -S : \
+	'(- 2):file:_files' \
+	'(1):shell function:_functions' \
+	'(1)-f[edit function]';;
 esac