summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-08-12 12:03:30 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-08-25 11:26:57 +0200
commit3b6afbae4d72b25f99db5a1956daf13915bc7829 (patch)
tree71c53b4b4db8891628aac005bf6e52de54eb890d
parent0fe7b4511fea42e56f763c3a44bfd49ba73cb5ac (diff)
Corrects an error while calculating spaceleft..
-rw-r--r--12_Prompts.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index b3d2ed7..62febfb 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -83,10 +83,10 @@ old_precmd()
[ "$DEBUG" = "yes" ] && echo -n " Horizontal bar..."
# First line of prompt, calculation of the remaining place
- spaceleft=$((1 + $COLUMNS - $ERRORSIZE - $MAILSTATSIZE - $DATESIZE))
+ spaceleft=$(($COLUMNS - $ERRORSIZE - $MAILSTATSIZE - $DATESIZE))
unset HBAR
- for h in {1..$(($spaceleft - 1))}
+ for h in {1..$spaceleft}
do
HBAR=$HBAR-
done