diff options
| author | nyamatongwe <unknown> | 2002-02-03 02:57:45 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-02-03 02:57:45 +0000 | 
| commit | 2167f1d01c4fd098535e66754939328123ff1b34 (patch) | |
| tree | c2d44fd70346d9ffdacb48ce09cfb0295749e0e9 /src | |
| parent | e28676e3fa6cf50b7891ba9c0a1db713ed8f78a8 (diff) | |
| download | scintilla-mirror-2167f1d01c4fd098535e66754939328123ff1b34.tar.gz | |
Patch to ensure caret on after mouse wheel scroll or pressing
End when already at line end.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 461460f69..613cd0a1e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -745,14 +745,15 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) {  }  void Editor::ShowCaretAtCurrentPosition() { -	if (!hasFocus) { +	if (hasFocus) { +		caret.active = true; +		caret.on = true; +		SetTicking(true); +	} else {  		caret.active = false;  		caret.on = false; -		return;  	} -	caret.active = true; -	caret.on = true; -	SetTicking(true); +	InvalidateCaret();  }  void Editor::DropCaret() { @@ -3536,7 +3537,6 @@ void Editor::SetFocusState(bool focusState) {  	NotifyFocus(hasFocus);  	if (hasFocus) {  		ShowCaretAtCurrentPosition(); -		InvalidateCaret();  	} else {  		DropCaret();  	} | 
