aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index acce39a4a..d7830b0b7 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -65,7 +65,6 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
char chPrev = ' ';
char chPrev2 = ' ';
char chNext = styler[startPos];
- char chNext2 = styler[startPos];
styler.StartSegment(startPos);
int lengthDoc = startPos + length;
bool atStartLine = true;
@@ -86,7 +85,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
- chNext2 = styler.SafeGetCharAt(i + 2);
+ char chNext2 = styler.SafeGetCharAt(i + 2);
if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == lengthDoc)) {
if ((state == SCE_P_DEFAULT) || (state == SCE_P_TRIPLE) || (state == SCE_P_TRIPLEDOUBLE)) {