cb72d7dcbf08b435c7f8a6470802b207b2aa02c3
- Author
- Kalle Ahlström <71292737+kahlstrm@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(af-magic): fix venv prompt counting parenthesis (#13190)
Diff
1diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
2index 668c4e5de91cef8921fb804c961a9fd3b3c21c70..f47d37340b8715351a841416c326142ff73957b6 100644
3--- a/themes/af-magic.zsh-theme
4+++ b/themes/af-magic.zsh-theme
5@@ -14,7 +14,7 @@ function afmagic_dashes {
6 if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
7 echo $(( COLUMNS - ${#python_env} - 3 ))
8 elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then
9- echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} ))
10+ echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} - 3 ))
11 else
12 echo $COLUMNS
13 fi