diff options
author | nyamatongwe <unknown> | 2002-10-03 02:01:00 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-10-03 02:01:00 +0000 |
commit | 4c8594e3dba0824da646a45f2a934bd8bd40ce68 (patch) | |
tree | 13a1492c37f4a7122328494a86447a91b87884a9 /src | |
parent | b9421289267244b65832ad0d0955abd68b07a1df (diff) | |
download | scintilla-mirror-4c8594e3dba0824da646a45f2a934bd8bd40ce68.tar.gz |
Fixed infinite loop finding zero width match at end of range.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 9854df677..747ccd8f2 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -915,7 +915,7 @@ long Document::FindText(int minPos, int maxPos, const char *s, lenRet = pre->eopat[0] - pre->bopat[0]; if (increment == -1) { // Check for the last match on this line. - while (success) { + while (success && (pre->eopat[0] < endOfLine)) { success = pre->Execute(di, pre->eopat[0], endOfLine); if (success) { if (pre->eopat[0] <= minPos) { |