File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -594,12 +594,14 @@ 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
598- self .config .curtsies_right_arrow_completion and
599- self .cursor_offset == len (self .current_line )):
597+ if (e in (key_dispatch [self .config .right_key ] +
598+ key_dispatch [self .config .end_of_line_key ] +
599+ ("<RIGHT>" ,))
600+ and self .config .curtsies_right_arrow_completion
601+ and self .cursor_offset == len (self .current_line )):
602+
600603 self .current_line += self .current_suggestion
601604 self .cursor_offset = len (self .current_line )
602-
603605 elif e in ("<UP>" ,) + key_dispatch [self .config .up_one_line_key ]:
604606 self .up_one_line ()
605607 elif e in ("<DOWN>" ,) + key_dispatch [self .config .down_one_line_key ]:
You can’t perform that action at this time.
0 commit comments