1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

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.
This commit is contained in:
Daniel Shahaf 2016-09-29 09:50:09 +00:00
parent dfc9214984
commit 4f2a1810f2
3 changed files with 6 additions and 3 deletions

View file

@ -47,9 +47,9 @@ function azhw:${^hooktypes} {
for hook in "${(@)${(@on)hook_widgets[@]}#<->:}"; do
if [[ "$hook" = user:* ]]; then
# Preserve $WIDGET within the renamed widget
zle "$hook" -N "$@"
zle "$hook" -N -- "$@"
else
zle "$hook" -Nw "$@"
zle "$hook" -Nw -- "$@"
fi || return
done
return 0