diff options
author | nyamatongwe <unknown> | 2003-04-10 10:17:40 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-04-10 10:17:40 +0000 |
commit | 7d60bb8fe627ca4c2d2ce04c2e7af4554e150f68 (patch) | |
tree | 6ae70a5157658fd7bad47c5f02e57c8d3e0f3b10 | |
parent | 01accc894fd134504d436d7bac150b5af02ac6e2 (diff) | |
download | scintilla-mirror-7d60bb8fe627ca4c2d2ce04c2e7af4554e150f68.tar.gz |
Fixed hang where '#' was last non-whitepsace in file.
-rw-r--r-- | src/LexVB.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexVB.cxx b/src/LexVB.cxx index 2e6177e8b..72fdb9c3c 100644 --- a/src/LexVB.cxx +++ b/src/LexVB.cxx @@ -116,7 +116,7 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle, } else if (sc.ch == '#') { int n = 1; int chSeek = ' '; - while (chSeek == ' ' || chSeek == '\t') { + while ((n < 100) && (chSeek == ' ' || chSeek == '\t')) { chSeek = sc.GetRelative(n); n++; } |