diff options
author | nyamatongwe <devnull@localhost> | 2000-04-23 22:58:26 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-04-23 22:58:26 +0000 |
commit | 7755da7142f88f1d9695fea500f9ae3f86d202ba (patch) | |
tree | d86be196f402ee62edae2b3158d5445da9275fe1 /src/LexCPP.cxx | |
parent | 6956977bdf58be27805d82c1aa33fc9d4c384241 (diff) | |
download | scintilla-mirror-7755da7142f88f1d9695fea500f9ae3f86d202ba.tar.gz |
Ensured lexers do not style any more than they have been asked to.
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 a1edec806..3c02111be 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -57,7 +57,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo int visChars = 0; styler.StartSegment(startPos); bool lastWordWasUUID = false; - for (unsigned int i = startPos; i <= lengthDoc; i++) { + for (unsigned int i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); |