From 229a1e9360cf8986a570fc89b5ee7e0175696698 Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Sun, 8 Jun 2025 02:07:13 +0100 Subject: [PATCH] fix: Ensure 'n' key works for jumping to next change block --- gtm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtm b/gtm index 4ea37a9..da48899 100755 --- a/gtm +++ b/gtm @@ -747,10 +747,10 @@ def handle_keyboard_input(key, state: AppState) -> AppState: return toggle_sidebar(state) elif key == ord('w'): return replace(state, wrap_lines=not state.wrap_lines) - elif key == 110: # ASCII code for 'n' + elif key in [110, ord('n')]: # ASCII code for 'n' if state.show_whole_diff or state.show_additions or state.show_deletions: return jump_to_next_change(state) - elif key == 112: # ASCII code for 'p' + elif key in [112, ord('p')]: # ASCII code for 'p' if state.show_whole_diff or state.show_additions or state.show_deletions: return jump_to_prev_change(state) elif key in [curses.KEY_LEFT, ord('h')]: