diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexOthers.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx index f3acd2f9d..2f0520f1f 100644 --- a/src/LexOthers.cxx +++ b/src/LexOthers.cxx @@ -221,7 +221,8 @@ static void ColourisePropsLine( styler.ColourTo(startLine+i, 3); styler.ColourTo(endPos, 0); } else { - while (lineBuffer[i] != '=' && (i < lengthLine)) // Search the '=' character + // Search for the '=' character + while (lineBuffer[i] != '=' && (i < lengthLine-1)) i++; if (lineBuffer[i] == '=') { styler.ColourTo(startLine+i-1, 0); |