1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +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

@ -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