diff options
| author | tDwtp <Dark-player@gmx.de> | 2025-12-11 15:05:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-11 15:05:23 +0100 |
| commit | f84341c57478445d534d0318231df8157ddfed3e (patch) | |
| tree | 1a8b5e99e43f6a215604d93d3f04dfeb9d93f57f /lib/git.zsh | |
| parent | 92aed2e93624124182ba977a91efa5bbe1e76d5f (diff) | |
| download | zsh-f84341c57478445d534d0318231df8157ddfed3e.tar.gz zsh-f84341c57478445d534d0318231df8157ddfed3e.tar.bz2 zsh-f84341c57478445d534d0318231df8157ddfed3e.zip | |
fix(git): git_status_prompt should respect spaces in prefixes (#13478)
Diffstat (limited to 'lib/git.zsh')
| -rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index f4d4229cb..8d38f3268 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -117,7 +117,7 @@ function _omz_git_prompt_status() { fi # For each status prefix, do a regex comparison - for status_prefix in ${(k)prefix_constant_map}; do + for status_prefix in "${(@k)prefix_constant_map}"; do local status_constant="${prefix_constant_map[$status_prefix]}" local status_regex=$'(^|\n)'"$status_prefix" |
