1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-413 Fix right-align to account for both widget borders. Closes #413

This commit is contained in:
Chris Cummer 2019-04-25 19:52:15 -07:00
parent 5445309aa0
commit d0c1a5db96

View File

@ -138,7 +138,8 @@ func (common *Common) RowColor(idx int) string {
} }
func (common *Common) RightAlignFormat(width 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 { func (common *Common) SigilStr(len, pos int, width int) string {