Skip to content

Commit

Permalink
ypo (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufmalikul authored Jan 19, 2023
1 parent 53724e6 commit 3099851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions paginator/paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func (m *Model) SetTotalPages(items int) int {
return n
}

// ItemsOnPage is a helper function for returning the numer of items on the
// current page given the total numer of items passed as an argument.
// ItemsOnPage is a helper function for returning the number of items on the
// current page given the total number of items passed as an argument.
func (m Model) ItemsOnPage(totalItems int) int {
if totalItems < 1 {
return 0
Expand Down
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (m *Model) UpdateViewport() {

// Render only rows from: m.cursor-m.viewport.Height to: m.cursor+m.viewport.Height
// Constant runtime, independent of number of rows in a table.
// Limits the numer of renderedRows to a maximum of 2*m.viewport.Height
// Limits the number of renderedRows to a maximum of 2*m.viewport.Height
if m.cursor >= 0 {
m.start = clamp(m.cursor-m.viewport.Height, 0, m.cursor)
} else {
Expand Down

0 comments on commit 3099851

Please sign in to comment.