From 0f8725beeb6b1273a5064f20ed0dd2c160c2a564 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 23 Sep 2016 06:47:32 +0000 Subject: 39423: _zed: Support the '--' end-of-options mark. This matters for fned'ing vcs_info hooks. --- Completion/Zsh/Command/_zed | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/Zsh/Command/_zed') 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 -- cgit 1.4.1