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

Commit34f0e70

Browse files
committed
Iterate over all completers until the first one with succeeding locate is found (fixes#879)
1 parent624116e commit34f0e70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎bpython/autocomplete.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ def __init__(self, completers, mode=AutocompleteModes.SIMPLE):
267267
super().__init__(True,mode)
268268

269269
deflocate(self,current_offset,line):
270-
returnself._completers[0].locate(current_offset,line)
270+
forcompleterinself._completers:
271+
return_value=completer.locate(current_offset,line)
272+
ifreturn_valueisnotNone:
273+
returnreturn_value
271274

272275
defformat(self,word):
273276
returnself._completers[0].format(word)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp