mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-12 02:10:41 +01:00
fix(git): git_status_prompt should respect spaces in prefixes (#13478)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user