diff --git a/zsh/themes/deblan/deblan.zsh-theme b/zsh/themes/deblan/deblan.zsh-theme index c4356f5..19f9311 100644 --- a/zsh/themes/deblan/deblan.zsh-theme +++ b/zsh/themes/deblan/deblan.zsh-theme @@ -30,7 +30,7 @@ function deblan_precmd() { fi prompt_content="$prompt_content %{$fg_bold[white]%}$current_directory" - prompt_width="${#${(%):-$PS1}}" + prompt_width="${#${(%):-$prompt_content}}" term_width=$(tput cols) if [[ "$prompt_width*1.3" -gt $term_width ]]; then