diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-02-10 11:52:12 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-02-10 11:52:12 +0000 |
commit | 8bb689007fe7e539674df4e5f282502e46ceeb36 (patch) | |
tree | f7a7f3a4fc53a165336a5c2b1dc399db737ffdab /scintilla/src | |
parent | 8deb1a456a3672c2f66d9002c5dff6a153c13868 (diff) | |
download | notepad2-mod-8bb689007fe7e539674df4e5f282502e46ceeb36.zip notepad2-mod-8bb689007fe7e539674df4e5f282502e46ceeb36.tar.gz notepad2-mod-8bb689007fe7e539674df4e5f282502e46ceeb36.tar.bz2 |
update Scintilla
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@403 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src')
-rw-r--r-- | scintilla/src/Document.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scintilla/src/Document.cxx b/scintilla/src/Document.cxx index 7886a3e..39e0181 100644 --- a/scintilla/src/Document.cxx +++ b/scintilla/src/Document.cxx @@ -1309,7 +1309,11 @@ long Document::FindText(int minPos, int maxPos, const char *search, //Platform::DebugPrintf("Find %d %d %s %d\n", startPos, endPos, ft->lpstrText, lengthFind);
const int limitPos = Platform::Maximum(startPos, endPos);
- int pos = forward ? startPos : (startPos - 1);
+ int pos = startPos;
+ if (!forward) {
+ // Back all of a character
+ pos = NextPosition(pos, increment);
+ }
if (caseSensitive) {
while (forward ? (pos < endSearch) : (pos >= endSearch)) {
bool found = (pos + lengthFind) <= limitPos;
|