diff --git a/src/main/kotlin/org/zowe/explorer/editor/FileEditorEventsListener.kt b/src/main/kotlin/org/zowe/explorer/editor/FileEditorEventsListener.kt index 00950bc7f..4d92892c4 100644 --- a/src/main/kotlin/org/zowe/explorer/editor/FileEditorEventsListener.kt +++ b/src/main/kotlin/org/zowe/explorer/editor/FileEditorEventsListener.kt @@ -39,8 +39,8 @@ class FileEditorEventsListener : FileEditorManagerListener { override fun fileOpened(source: FileEditorManager, file: VirtualFile) { if (file is MFVirtualFile) { val editor = source.selectedTextEditor as? EditorEx - - editor?.addFocusListener(focusListener) + editor?.addFocusListener(focusListener) + } super.fileOpened(source, file) } }