diff options
| author | Kalle Ahlström <71292737+kahlstrm@users.noreply.github.com> | 2025-06-29 18:11:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-29 17:11:47 +0200 |
| commit | cb72d7dcbf08b435c7f8a6470802b207b2aa02c3 (patch) | |
| tree | ff16dc847a73de365ee389b46348bced57196565 | |
| parent | f9d3e0ff568820be25a80ed80b7a4776f3fb009a (diff) | |
| download | zsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.tar.gz zsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.tar.bz2 zsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.zip | |
fix(af-magic): fix venv prompt counting parenthesis (#13190)
| -rw-r--r-- | themes/af-magic.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme index 668c4e5de..f47d37340 100644 --- a/themes/af-magic.zsh-theme +++ b/themes/af-magic.zsh-theme @@ -14,7 +14,7 @@ function afmagic_dashes { if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then echo $(( COLUMNS - ${#python_env} - 3 )) elif [[ -n "$VIRTUAL_ENV_PROMPT" && "$PS1" = *${VIRTUAL_ENV_PROMPT}* ]]; then - echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} )) + echo $(( COLUMNS - ${#VIRTUAL_ENV_PROMPT} - 3 )) else echo $COLUMNS fi |
