diff options
author | nyamatongwe <unknown> | 2010-09-15 10:27:08 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-09-15 10:27:08 +1000 |
commit | 957357506e9b9929b665a5f7e5d520841ecb9a64 (patch) | |
tree | d9633895c96b03fc439e705e7c0e9c83ed9091db /src | |
parent | 1f2a5d4234c7d5855de05095896612200a40cc36 (diff) | |
download | scintilla-mirror-957357506e9b9929b665a5f7e5d520841ecb9a64.tar.gz |
Fix for bug #3065912 Fail to Search up when code.page = 936
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 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; |