QScintilla/Editor.py

changeset 4282
c72c9b51ae73
parent 4272
169835cdf784
child 4283
57a2cfd256da
diff -r 66b5f61b962d -r c72c9b51ae73 QScintilla/Editor.py
--- 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,

eric ide

mercurial