QScintilla/Editor.py

branch
maintenance
changeset 6518
926d65bd23b8
parent 6487
d3ca83d691e7
parent 6498
674ac2051e8a
child 6602
331ac8f99cf8
--- a/QScintilla/Editor.py	Sun Sep 02 11:07:03 2018 +0200
+++ b/QScintilla/Editor.py	Sun Sep 30 11:38:40 2018 +0200
@@ -2626,6 +2626,10 @@
             lineIndex += 1
             shouldBreak = False
             
+            if line.endswith("__NO-TASK__"):
+                # ignore potential task marker
+                continue
+            
             for taskType, taskMarkers in markers.items():
                 for taskMarker in taskMarkers:
                     index = line.find(taskMarker)
@@ -4751,8 +4755,10 @@
         
         self.__acCompletionsFinished += 1
         # Got all results from auto completer?
-        if self.__acCompletionsFinished >= len(
-                self.__completionListAsyncHookFunctions):
+        if self.__acCompletionsFinished >= (
+            len(self.__completionListAsyncHookFunctions) +
+            len(self.__completionListHookFunctions)
+        ):
             self.__acWatchdog.stop()
             
             # Autocomplete with QScintilla if no results present

eric ide

mercurial