summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorKalle Ahlström <71292737+kahlstrm@users.noreply.github.com>2025-06-29 18:11:47 +0300
committerGitHub <noreply@github.com>2025-06-29 17:11:47 +0200
commitcb72d7dcbf08b435c7f8a6470802b207b2aa02c3 (patch)
treeff16dc847a73de365ee389b46348bced57196565 /themes
parentf9d3e0ff568820be25a80ed80b7a4776f3fb009a (diff)
downloadzsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.tar.gz
zsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.tar.bz2
zsh-cb72d7dcbf08b435c7f8a6470802b207b2aa02c3.zip
fix(af-magic): fix venv prompt counting parenthesis (#13190)
Diffstat (limited to 'themes')
-rw-r--r--themes/af-magic.zsh-theme2
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