aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-04-17 21:19:15 +0700
committerwustho <benawiadha@gmail.com>2020-04-17 21:19:15 +0700
commit1a77fdc1f4f6a5f9b5925ed5cb8d8e1a761784a6 (patch)
treea11c3c4e523c2bcca561f7a21f22443a48a5f34c
parentb4a5cf84b56b4af1f35f95992830a7ccde4334b9 (diff)
downloadepy-1a77fdc1f4f6a5f9b5925ed5cb8d8e1a761784a6.tar.gz
Fixed jagged window when resizing terminal one column by one.
-rwxr-xr-xepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 3b63fe5..e5d438e 100755
--- a/epy.py
+++ b/epy.py
@@ -1320,7 +1320,7 @@ def reader(ebook, index, width, y, pctg, sect):
curses.resize_term(rows, cols)
if cols < 22 or rows < 12:
sys.exit("ERR: Screen was too small.")
- if cols <= width:
+ if cols <= width + 4:
return 0, cols - 4, 0, y/totlines, ""
else:
return 0, width, y, None, ""