Skip to content

Commit e3dfb4f

Browse files
committed
Add Ctrl-e to complete current suggestion.
1 parent 7eaef53 commit e3dfb4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,12 +594,11 @@ def process_key_event(self, e):
594594
if self.stdin.has_focus:
595595
return self.stdin.process_event(e)
596596

597-
if (e in ("<RIGHT>", '<Ctrl-f>') and
597+
if (e in ("<RIGHT>", '<Ctrl-f>', '<Ctrl-e>') and
598598
self.config.curtsies_right_arrow_completion and
599599
self.cursor_offset == len(self.current_line)):
600600
self.current_line += self.current_suggestion
601601
self.cursor_offset = len(self.current_line)
602-
603602
elif e in ("<UP>",) + key_dispatch[self.config.up_one_line_key]:
604603
self.up_one_line()
605604
elif e in ("<DOWN>",) + key_dispatch[self.config.down_one_line_key]:

0 commit comments

Comments
 (0)