This commit is contained in:
Yusuf Malikul Mulki
2023-01-19 00:20:02 -05:00
committed by GitHub
parent 53724e6a72
commit 30998513ba
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {