summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/AutoComplete.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-11 19:49:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-11 19:49:06 (GMT)
commite03c74a1b6ac4cebc6688843dd32ba03c49ea492 (patch)
tree84ed0fd2ef7f0a979718dcf5f7bd872a134e0583 /Lib/idlelib/AutoComplete.py
parentb65685f3f22d66e4f99abccf56ec54cdcce36c04 (diff)
downloadcpython-e03c74a1b6ac4cebc6688843dd32ba03c49ea492.zip
cpython-e03c74a1b6ac4cebc6688843dd32ba03c49ea492.tar.gz
cpython-e03c74a1b6ac4cebc6688843dd32ba03c49ea492.tar.bz2
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Diffstat (limited to 'Lib/idlelib/AutoComplete.py')
-rw-r--r--Lib/idlelib/AutoComplete.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
index 4e17325..cb38691 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -156,12 +156,9 @@ class AutoComplete:
if not comp_lists[0]:
return
self.autocompletewindow = self._make_autocomplete_window()
- self.autocompletewindow.show_window(comp_lists,
- "insert-%dc" % len(comp_start),
- complete,
- mode,
- userWantsWin)
- return True
+ return not self.autocompletewindow.show_window(
+ comp_lists, "insert-%dc" % len(comp_start),
+ complete, mode, userWantsWin)
def fetch_completions(self, what, mode):
"""Return a pair of lists of completions for something. The first list