Skip to content

Commit d8e601f

Browse files
committed
Use C-p/C-n for back()/fwd(), like readline does.
1 parent 910e310 commit d8e601f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,11 +1373,11 @@ def p_key(self):
13731373
self.undo()
13741374
return ''
13751375

1376-
elif self.c == 'KEY_UP': # Cursor Up
1376+
elif self.c in ('KEY_UP', ) + key_dispatch['C-p']: # Cursor Up/C-p
13771377
self.back()
13781378
return ''
13791379

1380-
elif self.c == 'KEY_DOWN': # Cursor Down
1380+
elif self.c in ('KEY_DOWN', ) + key_dispatch['C-n']: # Cursor Down/C-n
13811381
self.fwd()
13821382
return ''
13831383

0 commit comments

Comments
 (0)