aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-02-03 02:57:45 +0000
committernyamatongwe <unknown>2002-02-03 02:57:45 +0000
commit2167f1d01c4fd098535e66754939328123ff1b34 (patch)
treec2d44fd70346d9ffdacb48ce09cfb0295749e0e9 /src
parente28676e3fa6cf50b7891ba9c0a1db713ed8f78a8 (diff)
downloadscintilla-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.cxx12
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();
}