aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-11-08 09:44:57 +1100
committernyamatongwe <unknown>2010-11-08 09:44:57 +1100
commitb3ef403c2b6c3873eefe84556875f6637818aa28 (patch)
tree0b1bff28d207fbe4a9cc98ae1e6e81b782682da1
parent007ad81af9c6398a5adca6df50130e4759e07075 (diff)
downloadscintilla-mirror-b3ef403c2b6c3873eefe84556875f6637818aa28.tar.gz
Fix for bug #3103936. Backwards search with code page 936 does not match at line start.
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index bae33b97e..b70024f34 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -552,7 +552,7 @@ int Document::NextPosition(int pos, int moveDir) const {
// 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 - 1;
+ return pos - 1;
} else if (IsDBCSLeadByte(cb.CharAt(pos - 1))) {
// Must actually be trail byte
return pos - 2;