Issue #18988: The "Tab" key now works when a word is already autocompleted.

This commit is contained in:
Serhiy Storchaka 2013-09-11 22:46:27 +03:00
parent b9183950d8
commit dd4754e6a8
3 changed files with 7 additions and 7 deletions

View file

@ -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