Fix bug in undo/redo + folds: The folds have to get onto the undo queue after the changeStack is empty. New events changeStart/End added.

This commit is contained in:
Julian Viereck 2011-04-29 11:08:19 +02:00
commit e871700e2e
3 changed files with 83 additions and 18 deletions

View file

@ -334,6 +334,12 @@ function Folding() {
return fold;
};
this.addFolds = function(folds) {
folds.forEach(function(fold) {
this.addFold(fold);
}, this);
};
this.removeFold = function(fold) {
var foldLine = fold.foldLine;
var startRow = foldLine.start.row;