fix discard file for editor

pull/1/head
yann300 6 years ago
parent 3605cdb404
commit a55b93017f
  1. 5
      src/app/editor/editor.js

@ -225,9 +225,8 @@ function Editor (opts = {}, localRegistry) {
} }
this.discard = function (path) { this.discard = function (path) {
if (currentSession !== path) { if (sessions[path]) delete sessions[path]
delete sessions[path] if (currentSession === path) currentSession = null
}
} }
this.resize = function (useWrapMode) { this.resize = function (useWrapMode) {

Loading…
Cancel
Save