Skip to content

Commit

Permalink
Fixed int conversion / length calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Apr 4, 2021
1 parent e362da3 commit 21cc98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tui/toot.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func RenderToot(toot *mast.Toot, width int, showImages bool) (string, error) {

idPadding :=
width -
len(string(toot.ID)) -
len(fmt.Sprint(toot.ID)) -
runewidth.StringWidth(status.Account.DisplayName) -
len(account) -
// https://github.com/mattn/go-runewidth/issues/36
Expand Down

0 comments on commit 21cc98e

Please sign in to comment.