diff --git a/lib/client/edit.js b/lib/client/edit.js index 1b5ffec0..c5699aba 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -127,6 +127,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch; Util.ifExec(!isDiff, function(patch) { var query; + Value = lValue; + if (Util.isString(patch)) { lValue = patch; query = '?patch'; @@ -193,7 +195,6 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch; msg = '\nShould I save file anyway?'; if (!isError) { - Value = Ace.getValue(); Edit.showMessage(text); DOM.saveDataToCache(path, Value); } else {