Commit a55b9301 authored by yann300's avatar yann300

fix discard file for editor

parent 3605cdb4
......@@ -225,9 +225,8 @@ function Editor (opts = {}, localRegistry) {
}
this.discard = function (path) {
if (currentSession !== path) {
delete sessions[path]
}
if (sessions[path]) delete sessions[path]
if (currentSession === path) currentSession = null
}
this.resize = function (useWrapMode) {
......
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