From c4643daa3624825d4ee71a91885dc6f81103ecf1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 27 Jun 2023 16:28:26 -0600 Subject: [PATCH] Scroll Protocoin lines a page at a time --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 307db8a..21aca1a 100755 --- a/main.py +++ b/main.py @@ -1078,11 +1078,12 @@ while True: protocoin = {} protocoin_line = 0 elif button == 'j' or c == curses.KEY_DOWN or c == KEY_SPACE: - protocoin_line += 1 - stdscr.erase() + if protocoin_line+19 < len(lines): + protocoin_line += 19 + stdscr.erase() elif button == 'k' or c == curses.KEY_UP: if protocoin_line > 0: - protocoin_line -= 1 + protocoin_line -= 19 stdscr.erase() else: try_highlight()