about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-29 09:50:09 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-30 23:15:57 +0000
commit4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e (patch)
tree5088dbf7755111a7d518fffc47bab561e9facf6c /Doc/Zsh/contrib.yo
parentdfc9214984d81f19de2ca7cd3ce7ba102165440b (diff)
downloadzsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.gz
zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.xz
zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.zip
39495: add-zle-hook-widget: Add end-of-options guard to hook invocation.
Currently, the only special widget that takes arguments is zle-keymap-select.
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r--Doc/Zsh/contrib.yo2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 63df292ac..189a084ba 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -346,7 +346,7 @@ as the var(hook) argument.
 var(widgetname) is the name of a ZLE widget.  If no options are given this
 is added to the array of widgets to be invoked in the given hook context.
 Note that the hooks are called as widgets, that is, with
-example(tt(zle )var(widgetname)tt( -Nw "$@"))
+example(tt(zle )var(widgetname)tt( -Nw -- "$@"))
 
 vindex(WIDGET, in hooks)
 Note that this means that the `tt(WIDGET)' special parameter tracks the