Skip to content

Commit

Permalink
Fixed scroll down to reach last line.
Browse files Browse the repository at this point in the history
  • Loading branch information
wustho committed Apr 18, 2020
1 parent f580ee5 commit 7558277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epr.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"""


__version__ = "2.3.3"
__version__ = "2.3.4"
__license__ = "MIT"
__author__ = "Benawi Adha"
__url__ = "https://github.com/wustho/epr"
Expand Down Expand Up @@ -910,7 +910,7 @@ def reader(stdscr, ebook, index, width, y, pctg):
elif k in SCROLL_DOWN:
if count > 1:
svline = y + rows - 1
if y + count < totlines - rows:
if y + count <= totlines - rows:
y += count
elif index != len(contents)-1:
return 1, width, 0, None
Expand Down

0 comments on commit 7558277

Please sign in to comment.