diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2017-08-07 17:37:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 17:37:10 (GMT) |
commit | 89225871d314fa675ea9ac292e7bc75320f1aef5 (patch) | |
tree | cca22d07247f97d8c418b562935cc99c2edf809f /Lib/idlelib | |
parent | dff9b5f9d62aa0b23f8a255867d09d11890efd1b (diff) | |
download | cpython-89225871d314fa675ea9ac292e7bc75320f1aef5.zip cpython-89225871d314fa675ea9ac292e7bc75320f1aef5.tar.gz cpython-89225871d314fa675ea9ac292e7bc75320f1aef5.tar.bz2 |
bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/parenmatch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/parenmatch.py b/Lib/idlelib/parenmatch.py index c15cb81..7f25880 100644 --- a/Lib/idlelib/parenmatch.py +++ b/Lib/idlelib/parenmatch.py @@ -104,18 +104,18 @@ class ParenMatch: # 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." |