File tree 1 file changed +6
-4
lines changed
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):
594
594
if self .stdin .has_focus :
595
595
return self .stdin .process_event (e )
596
596
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
+
600
603
self .current_line += self .current_suggestion
601
604
self .cursor_offset = len (self .current_line )
602
-
603
605
elif e in ("<UP>" ,) + key_dispatch [self .config .up_one_line_key ]:
604
606
self .up_one_line ()
605
607
elif e in ("<DOWN>" ,) + key_dispatch [self .config .down_one_line_key ]:
You can’t perform that action at this time.
0 commit comments