aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2022-01-25 05:24:17 +0700
committerbenadha <benawiadha@gmail.com>2022-01-25 05:24:17 +0700
commit9d59248c311a52eb03ffeb30701c2e2b12ec8df7 (patch)
tree12a91f4e995b5700dce6cc002fce4ff3386bcc04
parent74f7e027ba7569735951d91e25084c0851796960 (diff)
downloadepy-2022.1.25.tar.gz
Bugfix #51: Stop/prevent scrolling at the end of ebookv2022.1.25
-rwxr-xr-xepy.py4
-rw-r--r--pyproject.toml2
-rw-r--r--setup.py2
3 files changed, 3 insertions, 5 deletions
diff --git a/epy.py b/epy.py
index 088c32c..e08cee6 100755
--- a/epy.py
+++ b/epy.py
@@ -23,7 +23,7 @@ examples:
"""
-__version__ = "2022.1.23"
+__version__ = "2022.1.25"
__license__ = "GPL-3.0"
__author__ = "Benawi Adha"
__email__ = "benawiadha@gmail.com"
@@ -3280,8 +3280,6 @@ class Reader:
textwidth=reading_state.textwidth,
row=0,
)
- else:
- reading_state = dataclasses.replace(reading_state, row=totlines - rows)
elif k in self.keymap.PageDown:
if totlines - reading_state.row > rows * self.spread:
diff --git a/pyproject.toml b/pyproject.toml
index d641210..fff8327 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "epy-reader"
-version = "2022.1.23"
+version = "2022.1.25"
description = "CLI Ebook Reader"
authors = ["Benawi Adha <benawiadha@gmail.com>"]
license = "GPL-3.0"
diff --git a/setup.py b/setup.py
index 5158b34..1724c6e 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setup(
name="epy-reader",
- version="2022.1.23",
+ version="2022.1.25",
description="Terminal/CLI Ebook (epub, fb2, mobi, azw3) Reader",
long_description=long_description,
long_description_content_type="text/markdown",