Lines Matching refs:completions
33 # The list of completions
34 self.completions = None
35 # A list with more completions, or None
70 """Find the first index in self.completions where completions[i] is
73 i = 0; j = len(self.completions)
76 if self.completions[m] >= s:
80 return min(i, len(self.completions)-1)
83 """Assuming that s is the prefix of a string in self.completions,
87 if self.completions[first][:len(s)] != s:
90 # Find the end of the range of completions where s is a prefix of.
92 j = len(self.completions)
95 if self.completions[m][:len(s)] != s:
102 return self.completions[first]
105 first_comp = self.completions[first]
106 last_comp = self.completions[last]
121 selstart = self.completions[cursel]
132 if self.completions[cursel][:len(self.start)] == self.start:
139 # If there are more completions, show them, and call me again.
141 self.completions = self.morecompletions
144 for item in self.completions:
154 self.completions, self.morecompletions = comp_lists
162 if self.completions[i] == completed and \
163 (i == len(self.completions)-1 or
164 self.completions[i+1][:len(completed)] != completed):
187 for item in self.completions:
248 self._change_start(self.completions[cursel])
253 self._change_start(self.completions[cursel])
305 if self.completions[cursel][:len(self.start)] == self.start \
307 self._change_start(self.completions[cursel])
319 newsel = len(self.completions)-1
327 newsel = min(len(self.completions)-1, cursel+jump)
332 newsel = min(len(self.completions)-1, cursel+1)
336 self._change_start(self.completions[newsel])
343 self._change_start(self.completions[cursel])