From 7755da7142f88f1d9695fea500f9ae3f86d202ba Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Apr 2000 22:58:26 +0000 Subject: Ensured lexers do not style any more than they have been asked to. --- src/LexSQL.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexSQL.cxx') diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx index 83a22687e..facd0e6b7 100644 --- a/src/LexSQL.cxx +++ b/src/LexSQL.cxx @@ -50,7 +50,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length, char chNext = styler[startPos]; styler.StartSegment(startPos); unsigned int lengthDoc = startPos + length; - for (unsigned int i = startPos; i <= lengthDoc; i++) { + for (unsigned int i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); -- cgit v1.2.3