fix: Ensure 'n' key works for jumping to next change block
This commit is contained in:
parent
7ff50bb49a
commit
229a1e9360
4
gtm
4
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')]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue