Fixed an omission related to the new async completion lists.

Fri, 06 Oct 2017 18:30:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 06 Oct 2017 18:30:39 +0200
changeset 5891
2f8349f872ee
parent 5890
22ec89341f5e
child 5892
475cc7f3a5fb

Fixed an omission related to the new async completion lists.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- 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