diff options
author | nyamatongwe <devnull@localhost> | 2002-10-03 02:01:00 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-10-03 02:01:00 +0000 |
commit | 970a276fab0f12e34f9376eed718591496f74c62 (patch) | |
tree | 13a1492c37f4a7122328494a86447a91b87884a9 /src | |
parent | 5e5f9dea93e559656127de711421d792fc43ee73 (diff) | |
download | scintilla-mirror-970a276fab0f12e34f9376eed718591496f74c62.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) { |