mirror of
https://github.com/taigrr/wtf
synced 2026-03-22 05:22:21 -07:00
WTF-413 Fix right-align to account for both widget borders. Closes #413
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user