[3.6] bpo-29910: IDLE - revert `break`s that disabled calltip close. (GH-2997) (#3017)
(cherry picked from commit 8922587
)
This commit is contained in:
parent
57e836cb41
commit
b61de2d465
|
@ -104,18 +104,18 @@ class ParenMatch:
|
||||||
# If user bound non-closer to <<paren-closed>>, quit.
|
# If user bound non-closer to <<paren-closed>>, quit.
|
||||||
closer = self.text.get("insert-1c")
|
closer = self.text.get("insert-1c")
|
||||||
if closer not in _openers:
|
if closer not in _openers:
|
||||||
return "break"
|
return
|
||||||
hp = HyperParser(self.editwin, "insert-1c")
|
hp = HyperParser(self.editwin, "insert-1c")
|
||||||
if not hp.is_in_code():
|
if not hp.is_in_code():
|
||||||
return "break"
|
return
|
||||||
indices = hp.get_surrounding_brackets(_openers[closer], True)
|
indices = hp.get_surrounding_brackets(_openers[closer], True)
|
||||||
if indices is None:
|
if indices is None:
|
||||||
self.bell()
|
self.bell()
|
||||||
return "break"
|
return
|
||||||
self.activate_restore()
|
self.activate_restore()
|
||||||
self.create_tag(indices)
|
self.create_tag(indices)
|
||||||
self.set_timeout()
|
self.set_timeout()
|
||||||
return "break"
|
return
|
||||||
|
|
||||||
def restore_event(self, event=None):
|
def restore_event(self, event=None):
|
||||||
"Remove effect of doing match."
|
"Remove effect of doing match."
|
||||||
|
|
Loading…
Reference in New Issue