Skip to content

Commit

Permalink
Fixed toot display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Apr 3, 2021
1 parent f3109b9 commit 982378e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mast/timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (timeline *Timeline) Load(timelineType TimelineType) (error) {
}

oldestStatusIndex := len(statuses) - 1
for i := oldestStatusIndex; i > 0; i-- {
for i := oldestStatusIndex; i >= 0; i-- {
status := statuses[i]

id := string(status.ID)
Expand Down
2 changes: 1 addition & 1 deletion tui/timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ func RenderTimeline(timeline *mast.Timeline, width int) (string, error) {
output = fmt.Sprintf("%s%s\n", output, tootOutput)
}

timeline.LastRenderedIndex = newRenderedIndex
timeline.LastRenderedIndex = (newRenderedIndex - 1)
return output, err
}

0 comments on commit 982378e

Please sign in to comment.