From 3b6afbae4d72b25f99db5a1956daf13915bc7829 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 12 Aug 2008 12:03:30 +0200 Subject: Corrects an error while calculating spaceleft.. --- 12_Prompts.zsh | 4 ++-- 1 file 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 -- cgit v1.2.3