mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
merge 3.2
This commit is contained in:
commit
f20940792d
3 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ class AutoComplete:
|
||||||
elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
|
elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
|
||||||
self._remove_autocomplete_window()
|
self._remove_autocomplete_window()
|
||||||
mode = COMPLETE_ATTRIBUTES
|
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
|
i -= 1
|
||||||
comp_start = curline[i:j]
|
comp_start = curline[i:j]
|
||||||
if i and curline[i-1] == '.':
|
if i and curline[i-1] == '.':
|
||||||
|
|
|
@ -354,7 +354,7 @@ class AutoCompleteWindow:
|
||||||
# A modifier key, so ignore
|
# A modifier key, so ignore
|
||||||
return
|
return
|
||||||
|
|
||||||
elif event.char:
|
elif event.char and event.char >= ' ':
|
||||||
# Regular character with a non-length-1 keycode
|
# Regular character with a non-length-1 keycode
|
||||||
self._change_start(self.start + event.char)
|
self._change_start(self.start + event.char)
|
||||||
self.lasttypedstart = self.start
|
self.lasttypedstart = self.start
|
||||||
|
|
|
@ -2,7 +2,7 @@ What's New in IDLE 3.3.0?
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
- Issue #14937: Perform auto-completion of filenames in strings even for
|
- Issue #14937: Perform auto-completion of filenames in strings even for
|
||||||
non-ASCII filenames.
|
non-ASCII filenames. Likewise for identifiers.
|
||||||
|
|
||||||
- Issue #8515: Set __file__ when run file in IDLE.
|
- Issue #8515: Set __file__ when run file in IDLE.
|
||||||
Initial patch by Bruce Frederiksen.
|
Initial patch by Bruce Frederiksen.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue