diff options
| author | nyamatongwe <devnull@localhost> | 2002-02-03 02:57:45 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-02-03 02:57:45 +0000 | 
| commit | 4b62baf85e53ef021ab8c5000b929622f0dddee5 (patch) | |
| tree | c2d44fd70346d9ffdacb48ce09cfb0295749e0e9 | |
| parent | 080ff4532e6ad7a2e74bc3913096b6ee25437a02 (diff) | |
| download | scintilla-mirror-4b62baf85e53ef021ab8c5000b929622f0dddee5.tar.gz | |
Patch to ensure caret on after mouse wheel scroll or pressing
End when already at line end.
| -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();  	} | 
