diff options
| author | nyamatongwe <unknown> | 2002-09-13 00:10:56 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-09-13 00:10:56 +0000 | 
| commit | a376dd1b83c3ff67097fde1388d016a82c7c6adb (patch) | |
| tree | 291aca2e34ed8291a25ebf1b9f96b9ff2cb31c21 /src/Editor.cxx | |
| parent | 6a945393a3c15b377bb39cea896d9fca14ade89f (diff) | |
| download | scintilla-mirror-a376dd1b83c3ff67097fde1388d016a82c7c6adb.tar.gz | |
Added ChooseCaretX.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index f2ba9f088..ac7e7bb76 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1555,15 +1555,15 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou  				char chDoc = pdoc->CharAt(charInDoc);  				styleByte = pdoc->StyleAt(charInDoc);  				if (vstyle.viewEOL || ((chDoc != '\r') && (chDoc != '\n'))) { -					allSame = allSame &&  +					allSame = allSame &&  						(ll->styles[numCharsInLine] == static_cast<char>(styleByte & styleMask)); -					allSame = allSame &&  +					allSame = allSame &&  						(ll->indicators[numCharsInLine] == static_cast<char>(styleByte & ~styleMask));  					if (vstyle.styles[ll->styles[numCharsInLine]].caseForce == Style::caseUpper) -						allSame = allSame &&  +						allSame = allSame &&  							(ll->chars[numCharsInLine] == static_cast<char>(toupper(chDoc)));  					else if (vstyle.styles[ll->styles[numCharsInLine]].caseForce == Style::caseLower) -						allSame = allSame &&  +						allSame = allSame &&  							(ll->chars[numCharsInLine] == static_cast<char>(tolower(chDoc)));  					else  						allSame = allSame && @@ -4659,6 +4659,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_GETXOFFSET:  		return xOffset; +	case SCI_CHOOSECARETX: +		SetLastXChosen(); +		break; +  	case SCI_SCROLLCARET:  		EnsureCaretVisible();  		break; | 
