diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-10-10 19:14:30 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-10-10 19:14:30 +0200 |
commit | 6e7b861675c4568931e91255abc62a7c45660e28 (patch) | |
tree | 29d00e5986ea1db5bd829b75f03353a979dac9c7 /lib/git.zsh | |
parent | 23760228908d14a4644718869d5ebfb7b0dde6a7 (diff) | |
download | zsh-6e7b861675c4568931e91255abc62a7c45660e28.tar.gz zsh-6e7b861675c4568931e91255abc62a7c45660e28.tar.bz2 zsh-6e7b861675c4568931e91255abc62a7c45660e28.zip |
lib: fix regex bug in git_prompt_status
Fixes #9326
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 f9b27949e..53d39609e 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -226,7 +226,7 @@ function git_prompt_status() { # For each status prefix, do a regex comparison for status_prefix in ${(k)prefix_constant_map}; do local status_constant="${prefix_constant_map[$status_prefix]}" - local status_regex="(^|\n)$status_prefix" + local status_regex=$'(^|\n)'"$status_prefix" if [[ "$status_text" =~ $status_regex ]]; then statuses_seen[$status_constant]=1 |