diff options
| author | nyamatongwe <unknown> | 2003-09-02 12:03:40 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-09-02 12:03:40 +0000 | 
| commit | a79f958fa36171b4ac0d50506d04887442171db8 (patch) | |
| tree | f59f3cec07fddc68c01a4bcd28079c26a8981426 /src | |
| parent | cd59973092b481dcbf17244ef582bee2bd59f501 (diff) | |
| download | scintilla-mirror-a79f958fa36171b4ac0d50506d04887442171db8.tar.gz | |
Fixed hang when searching backwards in UTF-8 file for string
that is not present.
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 487262f8a..78c84d485 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1012,7 +1012,7 @@ long Document::FindText(int minPos, int maxPos, const char *s,  				}  			}  			pos += increment; -			if (dbcsCodePage) { +			if (dbcsCodePage && (pos >= 0)) {  				// Ensure trying to match from start of character  				pos = MovePositionOutsideChar(pos, increment, false);  			} | 
