diff options
author | wustho <benawiadha@gmail.com> | 2020-04-17 21:19:15 +0700 |
---|---|---|
committer | wustho <benawiadha@gmail.com> | 2020-04-17 21:19:15 +0700 |
commit | 1a77fdc1f4f6a5f9b5925ed5cb8d8e1a761784a6 (patch) | |
tree | a11c3c4e523c2bcca561f7a21f22443a48a5f34c | |
parent | b4a5cf84b56b4af1f35f95992830a7ccde4334b9 (diff) | |
download | epy-1a77fdc1f4f6a5f9b5925ed5cb8d8e1a761784a6.tar.gz |
Fixed jagged window when resizing terminal one column by one.
-rwxr-xr-x | epy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, "" |