1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Merge pull request #212 from donaldww/master

Change MaxUint32 to MaxInt32 in scroll.go
This commit is contained in:
Jakub Sobon 2019-05-21 16:04:50 -04:00 committed by GitHub
commit 91ae185022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func rollToEnd(st *scrollTracker, lines, height int) rollState {
// If the user didn't scroll, just roll the content so that the last line
// is visible.
if st.scroll == 0 && st.scrollPage == 0 {
st.first = normalizeScroll(math.MaxUint32, lines, height)
st.first = normalizeScroll(math.MaxInt32, lines, height)
return rollToEnd
}