diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-23 06:47:32 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-24 07:22:16 +0000 |
commit | 0f8725beeb6b1273a5064f20ed0dd2c160c2a564 (patch) | |
tree | 62918657eda25d70f89d1010c1ee28bdfbaf343b | |
parent | 889f6690fd678ed2fdeb4d467e5b8db49b9c6667 (diff) | |
download | zsh-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.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Zsh/Command/_zed | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 8362d3e7b..c43272ecf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-09-24 Daniel Shahaf <d.s@daniel.shahaf.name> + * 39423: Completion/Zsh/Command/_zed: Support the '--' + end-of-options mark. + * 39423: Functions/VCS_Info/Backends/VCS_INFO_get_data_git: vcs_info git: Produce nicer applied-string messages for 'exec' actions. 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 |