aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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) &&