Commit a766ae85 authored by yann300's avatar yann300

update editor

parent 7b3618d5
......@@ -92,7 +92,7 @@ class FileManager {
if (path === this.opt.config.get('currentFile')) {
this.opt.config.set('currentFile', '')
}
this.opt.editor.discard(path)
this.opt.editor.discardCurrentSession()
delete this.tabbedFiles[path]
this.refreshTabs()
}
......@@ -131,6 +131,7 @@ class FileManager {
_switchFile(browserProvider.type + '/' + fileList[0])
} else {
self.event.trigger('currentFileChanged', [])
self.opt.editor.displayEmptyReadOnlySession()
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment