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:
parent
5445309aa0
commit
d0c1a5db96
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user