Fixed scrolling off-by-one error in python

This commit is contained in:
Bruce Hill 2020-04-25 21:45:18 -07:00
parent 54ff6604da
commit 7c5b3ef1b0

View File

@ -208,7 +208,7 @@ class BTUI:
assert self._btui
if amount is None:
amount = firstline
firstline, lastline = 1, self.height
firstline, lastline = 0, self.height-1
libbtui.btui_scroll(self._btui, firstline, lastline, amount)
libbtui.btui_flush(self._btui)