diff options
| -rw-r--r-- | src/Document.cxx | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index 51299b37c..c28879bea 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1227,11 +1227,9 @@ int Document::LinesTotal() {  }  void Document::ChangeCase(Range r, bool makeUpperCase) { -	for (int pos = r.start; pos < r.end; pos++) { +	for (int pos = r.start; pos < r.end;) {  		int len = LenChar(pos); -		if (dbcsCodePage && (len > 1)) { -			pos += len; -		} else { +		if (len == 1) {  			char ch = CharAt(pos);  			if (makeUpperCase) {  				if (IsLowerCase(ch)) { @@ -1243,6 +1241,7 @@ void Document::ChangeCase(Range r, bool makeUpperCase) {  				}  			}  		} +		pos += len;  	}  } | 
