diff options
author | wustho <benawiadha@gmail.com> | 2020-02-16 22:16:45 +0700 |
---|---|---|
committer | wustho <benawiadha@gmail.com> | 2020-02-16 22:16:45 +0700 |
commit | 1d2c10809b3c61b16c249f2f71a792aba162d94a (patch) | |
tree | cc6696eb04b14600aec7c5f670b9c8d52d9029db /epy.py | |
parent | a34b72af0bf69bfdc99c685ed3bf24706e8d6ebf (diff) | |
download | epy-1d2c10809b3c61b16c249f2f71a792aba162d94a.tar.gz |
Remove unused parameter `width` for toc()
Diffstat (limited to 'epy.py')
-rwxr-xr-x | epy.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |