From bedc794d102ab83c09eec731c411702602076c6b Mon Sep 17 00:00:00 2001 From: Andrius Ilgunas Date: Wed, 4 Jan 2012 11:46:14 -0800 Subject: [PATCH] Fixed calculation for padding. --- themes/a_ilgunas.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/a_ilgunas.zsh-theme b/themes/a_ilgunas.zsh-theme index c82ed11be..14097b9a5 100644 --- a/themes/a_ilgunas.zsh-theme +++ b/themes/a_ilgunas.zsh-theme @@ -144,7 +144,7 @@ p_choose_prompt () { local p_line_1a_width=${#${(S%%)p_line_1a//(\%([KF1]|)\{*\}|\%[Bbkf])}} local p_line_1b_width=${#${(S%%)p_line_1b//(\%([KF1]|)\{*\}|\%[Bbkf])}} - local p_padding_size=$(( COLUMNS - p_line_1a_width + 2 - p_line_1b_width)) + local p_padding_size=$(( COLUMNS - p_line_1a_width - p_line_1b_width)) # Try to fit in long path and user@host. if (( p_padding_size > 0 )); then