fix: Ensure 'n' key works for jumping to next change block

This commit is contained in:
n loewen (aider) 2025-06-08 02:07:13 +01:00
parent 7ff50bb49a
commit 229a1e9360
1 changed files with 2 additions and 2 deletions

4
gtm
View File

@ -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')]: