diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-09-11 19:46:27 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-09-11 19:46:27 (GMT) |
commit | dd4754e6a8760d70db1853855c5f6f0f8c1b1f1b (patch) | |
tree | 680a29547b9a5e71eac712ab1ed50bebb3d397b4 /Lib/idlelib/AutoCompleteWindow.py | |
parent | b9183950d80b42cf7d37a82f5a58e5561355e177 (diff) | |
download | cpython-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/AutoCompleteWindow.py')
-rw-r--r-- | Lib/idlelib/AutoCompleteWindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index 7787e70..f666ea6 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py @@ -157,13 +157,14 @@ class AutoCompleteWindow: self.start = self.widget.get(self.startindex, "insert") if complete: completed = self._complete_string(self.start) + start = self.start self._change_start(completed) i = self._binary_search(completed) if self.completions[i] == completed and \ (i == len(self.completions)-1 or self.completions[i+1][:len(completed)] != completed): # There is exactly one matching completion - return + return completed == start self.userwantswindow = userWantsWin self.lasttypedstart = self.start |