From 1a77fdc1f4f6a5f9b5925ed5cb8d8e1a761784a6 Mon Sep 17 00:00:00 2001 From: wustho Date: Fri, 17 Apr 2020 21:19:15 +0700 Subject: Fixed jagged window when resizing terminal one column by one. --- epy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "" -- cgit