diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2024-04-04 11:58:43 +0200 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2024-04-04 11:58:43 +0200 |
| commit | 114b58ed4e93faee352187779c7151f8580f24fe (patch) | |
| tree | 171f64481f0782aa7061760c28fcfb59e70fb851 /lib | |
| parent | 6d0362ef2f355a05cf945fae882ad1fa95428991 (diff) | |
| download | zsh-114b58ed4e93faee352187779c7151f8580f24fe.tar.gz zsh-114b58ed4e93faee352187779c7151f8580f24fe.tar.bz2 zsh-114b58ed4e93faee352187779c7151f8580f24fe.zip | |
fix(git): disable locally `ksharrays`
Fixes #12321
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index 76b3778db..23d11db2d 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -40,12 +40,14 @@ function _omz_git_prompt_info() { # Enable async prompt by default unless the setting is at false / no if zstyle -T ':omz:alpha:lib:git' async-prompt; then function git_prompt_info() { + setopt localoptions noksharrays if [[ -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_info]" ]]; then echo -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_info]" fi } function git_prompt_status() { + setopt localoptions noksharrays if [[ -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]" ]]; then echo -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]" fi |
