Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit577b9c7

Browse files
use configurable keys for right arrow completion
1 parente3dfb4f commit577b9c7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎bpython/curtsiesfrontend/repl.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,12 @@ def process_key_event(self, e):
594594
ifself.stdin.has_focus:
595595
returnself.stdin.process_event(e)
596596

597-
if (ein ("<RIGHT>",'<Ctrl-f>','<Ctrl-e>')and
598-
self.config.curtsies_right_arrow_completionand
599-
self.cursor_offset==len(self.current_line)):
597+
if (ein (key_dispatch[self.config.right_key]+
598+
key_dispatch[self.config.end_of_line_key]+
599+
("<RIGHT>",))
600+
andself.config.curtsies_right_arrow_completion
601+
andself.cursor_offset==len(self.current_line)):
602+
600603
self.current_line+=self.current_suggestion
601604
self.cursor_offset=len(self.current_line)
602605
elifein ("<UP>",)+key_dispatch[self.config.up_one_line_key]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp