1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39131: return on error needs to be at the outer scope.

This commit is contained in:
Barton E. Schaefer 2016-08-30 20:31:21 -07:00
parent c2592b4f72
commit 70166178bd
2 changed files with 9 additions and 4 deletions

View file

@ -3,6 +3,11 @@
* 39122: Completion/Unix/Command/_git: __git_recent_branches:
Silence warning on an edge case.
2016-08-30 Barton E. Schaefer <schaefer@zsh.org>
* 39131: Functions/Misc/add-zle-hook-widget: return on error
needs to be at the outer scope.
2016-08-30 Daniel Shahaf <d.s@daniel.shahaf.name>
* 39108: Completion/Unix/Command/_postfix: Support

View file

@ -18,10 +18,6 @@
#
# The -L option lists the hooks and their associated widgets.
() { # Preserve caller global option settings
emulate -L zsh
# This is probably more safeguarding than necessary
zmodload -e zsh/zle || return 1
{ zmodload zsh/parameter && zmodload zsh/zleparameter } || {
@ -29,6 +25,10 @@ zmodload -e zsh/zle || return 1
return 1
}
() { # Preserve caller global option settings
emulate -L zsh
# Setup - create the base functions for hook widgets that call the others
local -a hooktypes=( zle-isearch-exit zle-isearch-update