diff options
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index f309036a7..df8b7085b 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -52,6 +52,10 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, if (lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); + if (startPos == 0) + initStyle = SCE_P_DEFAULT; + else + initStyle = styler.StyleAt(startPos-1); } } |