diff --git a/src/app/editor/editors.component.ts b/src/app/editor/editors.component.ts index 135fffb..97d4a3e 100644 --- a/src/app/editor/editors.component.ts +++ b/src/app/editor/editors.component.ts @@ -274,7 +274,7 @@ export class EditorsComponent { if (editorComponent.editor.session !== file.session) continue; let targetFile = this.filesService.getPreviousFile(file.path) - if (targetFile) { + if (targetFile && (targetFile.path !== message.filePath)) { editorComponent.assignSession(targetFile); if (activeComponent == editorComponent) { this.editorsService.miniMapView.cloneSession(targetFile);