Lines Matching refs:words
1 '''Complete the current word before the cursor with words in the editor.
41 words = self.getwords()
44 words, index, insert, line = self.state
46 words = self.getwords()
48 if not words:
53 newword = words[index]
54 index = (index + 1) % len(words)
60 self.state = words, index, curinsert, curline
64 "Return a list of words that match the prefix before the cursor."
76 words = []
78 # search backwards through words before
83 words.append(w)
85 # search onwards through words after
89 words.append(w)
91 words.append(word)
92 return words