diff options
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r-- | src/LexCPP.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index e6182e8d8..8e3b7c498 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -124,7 +124,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo i++; ch = chNext; chNext = styler.SafeGetCharAt(i + 1); - } while (isspace(ch)); + } while (isspace(ch) && (i < lengthDoc)); } else if (isoperator(ch)) { styler.ColourTo(i-1, state); styler.ColourTo(i, SCE_C_OPERATOR); |