diff options
author | nyamatongwe <devnull@localhost> | 2010-11-08 09:44:57 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-11-08 09:44:57 +1100 |
commit | 9b3c16e516943805e76dec0fee70d76e97a826ea (patch) | |
tree | 5a0939dc2f684a6cef7c6dcb3523d8f980d2f844 /src/Document.cxx | |
parent | a966c5e5da085496a304d62e2b522febb2fb72f0 (diff) | |
download | scintilla-mirror-9b3c16e516943805e76dec0fee70d76e97a826ea.tar.gz |
Fix for bug #3103936. Backwards search with code page 936 does not match at line start.
Diffstat (limited to 'src/Document.cxx')
-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 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; |