8000 [3.6] bpo-29910: IDLE - revert `break`s that disabled calltip close. … by terryjreedy · Pull Request #3017 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.6] bpo-29910: IDLE - revert breaks that disabled calltip close. … #3017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Lib/idlelib/parenmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ def paren_closed_event(self, event):
# If user bound non-closer to <<paren-closed>>, quit.
closer = self.text.get("insert-1c")
if closer not in _openers:
return "break"
return
hp = HyperParser(self.editwin, "insert-1c")
if not hp.is_in_code():
return "break"
return
indices = hp.get_surrounding_brackets(_openers[closer], True)
if indices is None:
self.bell()
return "break"
return
self.activate_restore()
self.create_tag(indices)
self.set_timeout()
return "break"
return

def restore_event(self, event=None):
"Remove effect of doing match."
Expand Down
0