mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
Before, Enter would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, '\n' was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.
(cherry picked from commit 32fd874afe
)
This commit is contained in:
parent
789f47ebb5
commit
6628006941
1 changed files with 2 additions and 1 deletions
|
@ -325,8 +325,9 @@ class AutoCompleteWindow:
|
|||
return "break"
|
||||
|
||||
elif keysym == "Return":
|
||||
self.complete()
|
||||
self.hide_window()
|
||||
return None
|
||||
return 'break'
|
||||
|
||||
elif (self.mode == COMPLETE_ATTRIBUTES and keysym in
|
||||
("period", "space", "parenleft", "parenright", "bracketleft",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue