PEP 3131: support non-ASCII characters in auto-completion of identifiers.

This commit is contained in:
Martin v. Löwis 2012-06-03 12:32:42 +02:00
parent 97aa21b46a
commit 9f44a66abc
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ class AutoComplete:
elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
self._remove_autocomplete_window()
mode = COMPLETE_ATTRIBUTES
while i and curline[i-1] in ID_CHARS:
while i and curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127:
i -= 1
comp_start = curline[i:j]
if i and curline[i-1] == '.':