diff options
author | nyamatongwe <unknown> | 2000-05-03 13:05:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-05-03 13:05:08 +0000 |
commit | 6fd6af274fbbedfc533080ba9c0df74336c42769 (patch) | |
tree | 2b312e07f7bf97325b06b01a53a9da4c771ec91b /src/LexPython.cxx | |
parent | 75989ac8066bcacff3c9a41d74c2536560864009 (diff) | |
download | scintilla-mirror-6fd6af274fbbedfc533080ba9c0df74336c42769.tar.gz |
Fixed problem with initial style not being picked up correctly since the
lexer now starts styling from one line before where it is asked to.
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); } } |