diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-18 11:42:19 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-27 03:09:31 +0000 |
commit | 0cffb0a6b3602a00cebe2bbb7537d76727892959 (patch) | |
tree | 392a080127c5a8d4b1f079ee0ebe51180ed4825b /Functions/Misc | |
parent | 9575f2f1bf404b90002a5a55e13558288152a105 (diff) | |
download | zsh-0cffb0a6b3602a00cebe2bbb7537d76727892959.tar.gz zsh-0cffb0a6b3602a00cebe2bbb7537d76727892959.tar.xz zsh-0cffb0a6b3602a00cebe2bbb7537d76727892959.zip |
46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve add-zle-hook-widget support for multiple hook functions.
See workers/46004 for the use-case.
Diffstat (limited to 'Functions/Misc')
-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 9cc35496f..4d8049083 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" -f "nolast" -N -- "$@" else - zle "$hook" -Nw -- "$@" + zle "$hook" -f "nolast" -Nw -- "$@" fi || return done return 0 |