diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2025-03-20 20:02:34 +0100 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2025-03-20 20:02:34 +0100 |
| commit | 5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42 (patch) | |
| tree | 8787a0b89112fe4e9d6aa146605bcb459e33bd48 /lib/async_prompt.zsh | |
| parent | 85d60d489c54150cc9df5cef0504f6af90638fbd (diff) | |
| download | zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.tar.gz zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.tar.bz2 zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.zip | |
fix(termsupport): ensure ohmyzsh can run with `set -eu`
Closes #12870
Diffstat (limited to 'lib/async_prompt.zsh')
| -rw-r--r-- | lib/async_prompt.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/async_prompt.zsh b/lib/async_prompt.zsh index db48446e7..151e24b8c 100644 --- a/lib/async_prompt.zsh +++ b/lib/async_prompt.zsh @@ -26,7 +26,7 @@ autoload -Uz is-at-least # This API is subject to change and optimization. Rely on it at your own risk. function _omz_register_handler { - setopt localoptions noksharrays + setopt localoptions noksharrays unset typeset -ga _omz_async_functions # we want to do nothing if there's no $1 function or we already set it up if [[ -z "$1" ]] || (( ! ${+functions[$1]} )) \ @@ -44,6 +44,7 @@ function _omz_register_handler { # Set up async handlers and callbacks function _omz_async_request { + setopt localoptions noksharrays unset local -i ret=$? typeset -gA _OMZ_ASYNC_FDS _OMZ_ASYNC_PIDS _OMZ_ASYNC_OUTPUT |
