From a385637b9e74461bd90eadeb428827bc2558e598 Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Thu, 28 Apr 2011 21:01:09 +0200 Subject: [PATCH] Add removing folds to undo queue. --- demo/demo.js | 2 +- index.html | 2 +- lib/ace/document.js | 5 ++-- lib/ace/edit_session.js | 64 +++++++++++++++++++++++++++++++---------- 4 files changed, 54 insertions(+), 19 deletions(-) diff --git a/demo/demo.js b/demo/demo.js index 5f0cfaab..e0fca7a4 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -157,7 +157,7 @@ exports.launch = function(env) { docs.svg.addFold("fold...", new Range(1, 0, 7, 0)); docs.plain.addFold("fold", new Range(0, 90, 2, 30)); - window.s = docs.plain; + window.s = docs.js; window.e = env.editor; setTimeout(function() { env.editor.selection.addEventListener("changeCursor", function() { diff --git a/index.html b/index.html index 7acf756a..6a7a0ea7 100644 --- a/index.html +++ b/index.html @@ -14,9 +14,9 @@