From d0c1a5db96bc926a2e65a02fc02aa0c305bb874b Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Thu, 25 Apr 2019 19:52:15 -0700 Subject: [PATCH] WTF-413 Fix right-align to account for both widget borders. Closes #413 --- cfg/common_settings.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cfg/common_settings.go b/cfg/common_settings.go index 31feeb0a..81d1fe91 100644 --- a/cfg/common_settings.go +++ b/cfg/common_settings.go @@ -138,7 +138,8 @@ func (common *Common) RowColor(idx int) string { } func (common *Common) RightAlignFormat(width int) string { - return fmt.Sprintf("%%%ds", width-1) + borderOffset := 2 + return fmt.Sprintf("%%%ds", width-borderOffset) } func (common *Common) SigilStr(len, pos int, width int) string {