Fix OpenEditor offset to integer

This commit is contained in:
komoto
2022-09-11 12:58:15 +09:00
parent 7c4d21d778
commit 11f7c42c8d

View File

@@ -588,7 +588,7 @@ class TextEditMixin:
# scroll a bit more than what is minimum required
# so we don't have to scroll every time the user presses TAB
# which is very tireing to the eye
addoffset = self.GetSize()[0]/4
addoffset = self.GetSize()[0]//4
# but be careful at the end of the list
if addoffset + scrolloffset < self.GetSize()[0]:
offset += addoffset