diff --git a/src/main/kotlin/fi/testaustime/plugin_intellij/services/CaretMoveListener.kt b/src/main/kotlin/fi/testaustime/plugin_intellij/services/CaretMoveListener.kt index f83a25c..0cfd249 100755 --- a/src/main/kotlin/fi/testaustime/plugin_intellij/services/CaretMoveListener.kt +++ b/src/main/kotlin/fi/testaustime/plugin_intellij/services/CaretMoveListener.kt @@ -15,6 +15,7 @@ class CaretMoveListener(service: TestaustimeProjectService) : com.intellij.opena } init { + EditorFactory.getInstance().allEditors.forEach { it.caretModel.addCaretListener(this) } EditorFactory.getInstance().addEditorFactoryListener(object : EditorFactoryListener { override fun editorCreated(event: EditorFactoryEvent) { event.editor.caretModel.addCaretListener(this@CaretMoveListener)