diff options
author | nyamatongwe <unknown> | 2005-08-11 23:36:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-08-11 23:36:08 +0000 |
commit | ef8fcbaa8a5f087e473200416be39173318e0907 (patch) | |
tree | 99ddc525acf927bf47c295e792c11a96678e6e2f /src | |
parent | d8a20733038e9250dfadd10b31549bd6eb40aff1 (diff) | |
download | scintilla-mirror-ef8fcbaa8a5f087e473200416be39173318e0907.tar.gz |
Avoid window repaints in unfocused window.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
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) && |