--- a/QScintilla/Editor.py Sat Jun 13 19:28:13 2015 +0200 +++ b/QScintilla/Editor.py Sun Jun 21 20:18:34 2015 +0200 @@ -4544,11 +4544,11 @@ completionsList.extend( self.__completionListHookFunctions[key](self, context)) completionsList = list(set(completionsList)) - if len(completionsList) == 0 and \ - Preferences.getEditor("AutoCompletionScintillaOnFail") and \ - (self.autoCompletionSource() != QsciScintilla.AcsNone or - not auto): - self.autoCompleteQScintilla() + if len(completionsList) == 0: + if Preferences.getEditor("AutoCompletionScintillaOnFail") and \ + (self.autoCompletionSource() != QsciScintilla.AcsNone or + not auto): + self.autoCompleteQScintilla() else: completionsList.sort() self.showUserList(EditorAutoCompletionListID,