QScintilla/Editor.py

changeset 3441
1b07f996e9ee
parent 3438
29717a5e8b97
child 3446
5a670e55adbb
--- a/QScintilla/Editor.py	Thu Mar 27 19:15:18 2014 +0100
+++ b/QScintilla/Editor.py	Fri Mar 28 19:52:34 2014 +0100
@@ -5511,9 +5511,9 @@
         if error:
             # set a new syntax error marker
             markers = self.markersAtLine(line - 1)
+            index += self.indentation(line - 1)
             if not (markers & (1 << self.syntaxerror)):
                 handle = self.markerAdd(line - 1, self.syntaxerror)
-                index += self.indentation(line - 1)
                 self.syntaxerrors[handle] = [(msg, index)]
                 self.syntaxerrorToggled.emit(self)
             else:

eric ide

mercurial