summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/AutoComplete.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-11 19:46:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-11 19:46:27 (GMT)
commitdd4754e6a8760d70db1853855c5f6f0f8c1b1f1b (patch)
tree680a29547b9a5e71eac712ab1ed50bebb3d397b4 /Lib/idlelib/AutoComplete.py
parentb9183950d80b42cf7d37a82f5a58e5561355e177 (diff)
downloadcpython-dd4754e6a8760d70db1853855c5f6f0f8c1b1f1b.zip
cpython-dd4754e6a8760d70db1853855c5f6f0f8c1b1f1b.tar.gz
cpython-dd4754e6a8760d70db1853855c5f6f0f8c1b1f1b.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 929d358..f366030 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -160,12 +160,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