[BUG_FIXED] (Author: Neil Hodgson) Fix for bug #3103936. Backwards search with code page 936 does not match at line start.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@698 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
9d733b29cc
commit
a7f127dca0
@ -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
|
// See http://msdn.microsoft.com/en-us/library/cc194792%28v=MSDN.10%29.aspx
|
||||||
// http://msdn.microsoft.com/en-us/library/cc194790.aspx
|
// http://msdn.microsoft.com/en-us/library/cc194790.aspx
|
||||||
if ((pos - 1) <= posStartLine) {
|
if ((pos - 1) <= posStartLine) {
|
||||||
return posStartLine - 1;
|
return pos - 1;
|
||||||
} else if (IsDBCSLeadByte(cb.CharAt(pos - 1))) {
|
} else if (IsDBCSLeadByte(cb.CharAt(pos - 1))) {
|
||||||
// Must actually be trail byte
|
// Must actually be trail byte
|
||||||
return pos - 2;
|
return pos - 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user