[BUG_FIXED] (Author: Neil Hodgson) Fix for bug #3065912 Fail to Search up when code.page = 936.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@686 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2010-10-23 18:33:49 +00:00
parent 046ca42b55
commit 9d9d64fb2c

View File

@ -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;