QScintilla/Editor.py

changeset 5909
21d90a3abc7c
parent 5907
c928af9fce32
child 5911
0c7bcba51391
diff -r 4d08fb83a844 -r 21d90a3abc7c QScintilla/Editor.py
--- a/QScintilla/Editor.py	Mon Oct 16 19:11:25 2017 +0200
+++ b/QScintilla/Editor.py	Mon Oct 16 19:39:57 2017 +0200
@@ -390,6 +390,8 @@
         self.__acCompletions = set()
         self.__acCache = E5Cache(
             size=Preferences.getEditor("AutoCompletionCacheSize"))
+        self.__acCache.setMaximumCacheTime(
+            Preferences.getEditor("AutoCompletionCacheTime"))
         self.__acTimer = QTimer(self)
         self.__acTimer.setSingleShot(True)
         self.__acTimer.setInterval(
@@ -4061,6 +4063,8 @@
         # set the auto-completion function
         self.__acCache.setSize(
             Preferences.getEditor("AutoCompletionCacheSize"))
+        self.__acCache.setMaximumCacheTime(
+            Preferences.getEditor("AutoCompletionCacheTime"))
         acTimeout = Preferences.getEditor("AutoCompletionTimeout")
         if acTimeout != self.__acTimer.interval:
             self.__acTimer.setInterval(acTimeout)

eric ide

mercurial