Skip to content

Commit

Permalink
fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 26, 2023
1 parent d6d27b1 commit 2d8d7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (m *model) itemsView() string {
}
}

if i+1 == m.windowHeight-headerHeight {
if i+1 >= m.windowHeight-headerHeight {
break
}
v.WriteString("\n")
Expand Down

0 comments on commit 2d8d7c3

Please sign in to comment.