diff -r e8d89503f061 Lib/idlelib/AutoComplete.py --- a/Lib/idlelib/AutoComplete.py Sat May 26 20:44:45 2012 -0400 +++ b/Lib/idlelib/AutoComplete.py Mon May 28 16:36:29 2012 -0500 @@ -126,11 +126,13 @@ if hp.is_in_string() and (not mode or mode==COMPLETE_FILES): self._remove_autocomplete_window() mode = COMPLETE_FILES - while i and curline[i-1] in FILENAME_CHARS: + while i and ((curline[i-1] in FILENAME_CHARS) + or ord(curline[i-1])>127): i -= 1 comp_start = curline[i:j] j = i - while i and curline[i-1] in FILENAME_CHARS + SEPS: + while i and ((curline[i-1] in FILENAME_CHARS + SEPS) + or ord(curline[i-1])>127): i -= 1 comp_what = curline[i:j] elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):