aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-02-16 22:16:45 +0700
committerwustho <benawiadha@gmail.com>2020-02-16 22:16:45 +0700
commit1d2c10809b3c61b16c249f2f71a792aba162d94a (patch)
treecc6696eb04b14600aec7c5f670b9c8d52d9029db /epy.py
parenta34b72af0bf69bfdc99c685ed3bf24706e8d6ebf (diff)
downloadepy-1d2c10809b3c61b16c249f2f71a792aba162d94a.tar.gz
Remove unused parameter `width` for toc()
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index 2d1e793..99cbed5 100755
--- a/epy.py
+++ b/epy.py
@@ -470,7 +470,7 @@ def pgend(tot, winhi):
return 0
-def toc(src, index, width):
+def toc(src, index):
rows, cols = SCREEN.getmaxyx()
hi, wi = rows - 4, cols - 4
Y, X = 2, 2
@@ -958,7 +958,7 @@ def reader(ebook, index, width, y, pctg, sect):
y = pgend(totlines, rows)
elif k in K["ToC"]:
ntoc = find_curr_toc_id(toc_idx, toc_sect, toc_secid, index, y)
- fllwd = toc(toc_name, ntoc, width)
+ fllwd = toc(toc_name, ntoc)
if fllwd is not None:
if fllwd in {curses.KEY_RESIZE}|K["Help"]|K["Metadata"]:
k = fllwd