aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2021-02-02 11:22:23 +0700
committerbenadha <benawiadha@gmail.com>2021-02-02 11:22:23 +0700
commitb74cf629f17cbd5e822998165f7d7a37171e6982 (patch)
tree5900c0d576d590ef11e53a288fc0e81581215600 /epy.py
parent8efaa9cf07a28f84d14478ab1415c2699f5c3af4 (diff)
downloadepy-b74cf629f17cbd5e822998165f7d7a37171e6982.tar.gz
Bug fix: scroll down behaviour when totlines < rows
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index ac6c128..0917e41 100755
--- a/epy.py
+++ b/epy.py
@@ -1700,7 +1700,7 @@ def reader(ebook, index, width, y, pctg, sect):
svline = y + rows - 1
if y + count <= totlines - rows:
y += count
- elif y == totlines - rows and index != len(contents)-1:
+ elif y >= totlines - rows and index != len(contents)-1:
ANIMATE = "next"
return 1, width, 0, None, ""
else: