Commit 56850ce7 authored by yann300's avatar yann300

don't sync if nothing is loaded in the editor

parent 405ea9d3
......@@ -826,7 +826,7 @@ var run = function () {
function editorSyncFile () {
var currentFile = config.get('currentFile')
if (currentFile) {
if (currentFile && editor.current()) {
var input = editor.get(currentFile)
files.set(currentFile, input)
}
......
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