diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2012-06-05 15:09:25 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2012-06-05 15:09:25 +0200 |
commit | 7113703d9e7572c32bad3f5f7eda9715f7fc0756 (patch) | |
tree | a289f82b8141190e3f72ef1186ca434cc9fa5790 /12_Prompts.zsh | |
parent | 2211d4b16fbd8b301fc5e54b2a782e015b6679dc (diff) |
[Prompts] corrects error with CHUNKABLE git branch
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 7da1134..01f9e43 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -269,7 +269,7 @@ __update_prompt_elements() GITBRANCHCHUNK=$(( $GITBRANCHSIZE - ($spaceleft - $PATHSIZE) )) [ $((${#CHUNKABLE} - $GITBRANCHCHUNK)) -lt $minimalgitsize ] && GITBRANCHCHUNK=$((${#CHUNKABLE} - $minimalgitsize)) fi - CHUNKABLE=`print -Pn "%"$(( ${#CHUNKABLE} - $GITBRANCHCHUNK ))">¬>"${CHUNKABLE%\~*}` + CHUNKABLE=`print -Pn "%"$(( ${#CHUNKABLE} - ${GITBRANCHCHUNK:-0} ))">¬>"${CHUNKABLE%\~*}` GITBRANCH=${GITBRANCH/→*←/→$CHUNKABLE←} fi |