diff options
author | nyamatongwe <devnull@localhost> | 2003-09-02 12:03:40 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-09-02 12:03:40 +0000 |
commit | a801b2c5093a0f0af87df7c3d2f5c2b2642d75b8 (patch) | |
tree | f59f3cec07fddc68c01a4bcd28079c26a8981426 | |
parent | 4de9b7287ef1cd4f2198823fbe7587c406767dfc (diff) | |
download | scintilla-mirror-a801b2c5093a0f0af87df7c3d2f5c2b2642d75b8.tar.gz |
Fixed hang when searching backwards in UTF-8 file for string
that is not present.
-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); } |