QScintilla/Editor.py

branch
5_2_x
changeset 1565
815eb7a39944
parent 1518
e6e21910210d
child 1589
9f0fef4a4fbe
--- a/QScintilla/Editor.py	Fri Jan 20 18:54:06 2012 +0100
+++ b/QScintilla/Editor.py	Sat Jan 21 14:49:00 2012 +0100
@@ -1428,6 +1428,9 @@
         
         self.__setAnnotationStyles()
         
+        self.lexer_.setDefaultColor(self.lexer_.color(0))
+        self.lexer_.setDefaultPaper(self.lexer_.paper(0))
+        
     def __styleNeeded(self, position):
         """
         Private slot to handle the need for more styling.
@@ -3412,6 +3415,9 @@
         if self.lexer_ is not None:
             self.lexer_.readSettings(Preferences.Prefs.settings, "Scintilla")
             self.lexer_.initProperties()
+            
+            self.lexer_.setDefaultColor(self.lexer_.color(0))
+            self.lexer_.setDefaultPaper(self.lexer_.paper(0))
         
         # read the typing completer settings
         if self.completer is not None:

eric ide

mercurial