diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-29 09:50:09 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-30 23:15:57 +0000 |
| commit | 4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e (patch) | |
| tree | 5088dbf7755111a7d518fffc47bab561e9facf6c /Functions | |
| parent | 39480: _reportbug: Complete absolute filenames, too. (diff) | |
| download | zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.gz zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.bz2 zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.lz zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.xz zsh-4f2a1810f2fa1d74008e03a09d66eaff3e5edc9e.tar.zst 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 'Functions')
| -rw-r--r-- | Functions/Misc/add-zle-hook-widget | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget index 572de2561..d8a3950fb 100644 --- a/Functions/Misc/add-zle-hook-widget +++ b/Functions/Misc/add-zle-hook-widget @@ -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 |
