From c665dfd73e330213008f6422c25b5a115a541776 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 24 Jul 2016 23:01:28 -0400 Subject: Issue #19198: IDLE: tab after initial whitespace should tab, not autocomplete. Fixes problem with writing docstrings at lease twice indented. --- Lib/idlelib/autocomplete_w.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/idlelib/autocomplete_w.py') 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(): -- cgit v1.2.1