From b942954620be09db385485ab4d2bda57871dcbc6 Mon Sep 17 00:00:00 2001 From: n loewen Date: Sun, 8 Jun 2025 10:13:14 +0100 Subject: [PATCH] refactor: Simplify keyboard input handling and update main function signature --- gtm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtm b/gtm index 01d19cb..e77cdb3 100755 --- a/gtm +++ b/gtm @@ -1409,9 +1409,6 @@ def handle_keyboard_input(key, state: AppState) -> AppState: elif key in [67, ord('C')]: # ASCII code for 'C' (uppercase) if state.show_additions or state.show_deletions: return jump_to_prev_change(state) - elif key in [112, ord('p')]: # ASCII code for 'p' - if state.show_additions or state.show_deletions: - return jump_to_prev_change(state) elif key in [curses.KEY_LEFT, ord('h')]: if state.show_sidebar: return replace(state, focus="left") @@ -1441,7 +1438,7 @@ def handle_keyboard_input(key, state: AppState) -> AppState: # --- Main Application --- -def main(stdscr, filename, show_diff, show_add, show_del, mouse, wrap_lines=True, show_line_numbers=False): +def main(stdscr, filename, show_add, show_del, mouse, show_diff=True, wrap_lines=True, show_line_numbers=True): try: curses.curs_set(0) except: