QScintilla/Editor.py

changeset 5891
2f8349f872ee
parent 5890
22ec89341f5e
child 5894
0d4431926611
diff -r 22ec89341f5e -r 2f8349f872ee QScintilla/Editor.py
--- a/QScintilla/Editor.py	Thu Oct 05 19:11:59 2017 +0200
+++ b/QScintilla/Editor.py	Fri Oct 06 18:30:39 2017 +0200
@@ -4391,7 +4391,8 @@
         else:
             self.setAutoCompletionSource(QsciScintilla.AcsAll)
         if Preferences.getEditor("AutoCompletionEnabled"):
-            if not self.__completionListHookFunctions:
+            if not self.__completionListHookFunctions and \
+               not self.__completionListAsyncHookFunctions:
                 self.setAutoCompletionThreshold(
                     Preferences.getEditor("AutoCompletionThreshold"))
             else:
@@ -4769,7 +4770,8 @@
             (boolean)
         """
         return (self.acAPI or
-                bool(self.__completionListHookFunctions))
+                bool(self.__completionListHookFunctions) or
+                bool(self.__completionListAsyncHookFunctions))
     
     def callTip(self):
         """

eric ide

mercurial