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:
parent
dfc9214984
commit
4f2a1810f2
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue