Added a line to the editor to reset the lexer after a file was saved to a project (in order to apply project specific lexer settings).

Sat, 23 Mar 2013 16:03:22 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 23 Mar 2013 16:03:22 +0100
changeset 2517
495777476cc4
parent 2516
90906ec76a8d
child 2519
e245447026ad

Added a line to the editor to reset the lexer after a file was saved to a project (in order to apply project specific lexer settings).

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Fri Mar 22 18:49:35 2013 +0100
+++ b/QScintilla/Editor.py	Sat Mar 23 16:03:22 2013 +0100
@@ -2819,6 +2819,7 @@
                 if self.project.isOpen() and self.project.startswithProjectPath(fn):
                     self.project.appendFile(self.fileName)
                     self.addedToProject()
+                    self.setLanguage(self.fileName)
             
             self.lastModified = QFileInfo(self.fileName).lastModified()
             if newName is not None:

eric ide

mercurial