aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-08-11 23:36:08 +0000
committernyamatongwe <devnull@localhost>2005-08-11 23:36:08 +0000
commit32950e08a4a4905365f4145e02355e8aea5acff9 (patch)
tree99ddc525acf927bf47c295e792c11a96678e6e2f /src
parent8e20bff4c3897c6e897c15eddc1687bc134967dd (diff)
downloadscintilla-mirror-32950e08a4a4905365f4145e02355e8aea5acff9.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) &&