diff options
| author | nyamatongwe <unknown> | 2005-06-02 01:32:55 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2005-06-02 01:32:55 +0000 | 
| commit | 80f9bc1a615da214aadb989cd045c59cf6f1878d (patch) | |
| tree | 8650cbb5a751f1d22cbfe60eafc84484d62981ad /src | |
| parent | 6561ae887e1dcbc11d6925d9af5954ede237c133 (diff) | |
| download | scintilla-mirror-80f9bc1a615da214aadb989cd045c59cf6f1878d.tar.gz | |
Fix bug in multi-byte encodings where making selection upper case or lower
case would not change the first character on each line.
Diffstat (limited to 'src')
| -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;  	}  } | 
