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:
commit
91ae185022
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user