summaryrefslogtreecommitdiff
path: root/Lib/idlelib/autocomplete_w.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-07-24 23:01:28 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-07-24 23:01:28 -0400
commitc665dfd73e330213008f6422c25b5a115a541776 (patch)
tree42b888927fcfda7b7bc7241388c1f54012bfe4d8 /Lib/idlelib/autocomplete_w.py
parent996d72bccf2bc6d7d0be2ae1280186e68a0a1663 (diff)
downloadcpython-git-c665dfd73e330213008f6422c25b5a115a541776.tar.gz
Issue #19198: IDLE: tab after initial whitespace should tab, not autocomplete.
Fixes problem with writing docstrings at lease twice indented.
Diffstat (limited to 'Lib/idlelib/autocomplete_w.py')
-rw-r--r--Lib/idlelib/autocomplete_w.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py
index 37d89289a1..31837e0740 100644
--- a/Lib/idlelib/autocomplete_w.py
+++ b/Lib/idlelib/autocomplete_w.py
@@ -240,9 +240,8 @@ class AutoCompleteWindow:
acw.wm_geometry("+%d+%d" % (new_x, new_y))
def hide_event(self, event):
- if not self.is_active():
- return
- self.hide_window()
+ if self.is_active():
+ self.hide_window()
def listselect_event(self, event):
if self.is_active():