aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-08-11 23:36:08 +0000
committernyamatongwe <unknown>2005-08-11 23:36:08 +0000
commitef8fcbaa8a5f087e473200416be39173318e0907 (patch)
tree99ddc525acf927bf47c295e792c11a96678e6e2f /src
parentd8a20733038e9250dfadd10b31549bd6eb40aff1 (diff)
downloadscintilla-mirror-ef8fcbaa8a5f087e473200416be39173318e0907.tar.gz
Avoid window repaints in unfocused window.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 170a376ba..1c6579eed 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5298,7 +5298,9 @@ void Editor::Tick() {
if (timer.ticksToWait <= 0) {
caret.on = !caret.on;
timer.ticksToWait = caret.period;
- InvalidateCaret();
+ if (caret.active) {
+ InvalidateCaret();
+ }
}
}
if ((dwellDelay < SC_TIME_FOREVER) &&