AssistantEric/Assistant.py

changeset 107
728fde5bfdb1
parent 106
df7a9c556d5c
child 116
a109c6b8ac77
--- a/AssistantEric/Assistant.py	Thu Jan 01 13:24:09 2015 +0100
+++ b/AssistantEric/Assistant.py	Sat Feb 21 18:34:31 2015 +0100
@@ -662,7 +662,8 @@
                     line, index = editor.lineIndexFromPosition(pos)
                     curWord = editor.getWord(line, index, useWordChars=False)
                     completion += curWord[len(completion):]
-                    if completion and completion not in completionsList:
+                    if completion and completion not in completionsList and \
+                            completion != word:
                         completionsList.append(
                             "{0}?{1}".format(
                                 completion, self.__fromDocumentID))

eric ide

mercurial