aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-09-15 10:27:08 +1000
committernyamatongwe <devnull@localhost>2010-09-15 10:27:08 +1000
commitf36f15772187a166cfa9f6c63c6ec6df6cba7088 (patch)
tree8e6a14c38f25eb3715049c5fface134824d8f1e4 /src
parent4c50cd7d4a7d78574e7f49ef20879b4022a5bb08 (diff)
downloadscintilla-mirror-f36f15772187a166cfa9f6c63c6ec6df6cba7088.tar.gz
Fix for bug #3065912 Fail to Search up when code.page = 936
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index f9627f066..5bf9adbe4 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -549,7 +549,7 @@ int Document::NextPosition(int pos, int moveDir) {
// See http://msdn.microsoft.com/en-us/library/cc194792%28v=MSDN.10%29.aspx
// http://msdn.microsoft.com/en-us/library/cc194790.aspx
if ((pos - 1) <= posStartLine) {
- return posStartLine;
+ return posStartLine - 1;
} else if (IsDBCSLeadByte(cb.CharAt(pos - 1))) {
// Must actually be trail byte
return pos - 2;