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:
parent
acc318af90
commit
e871700e2e
3 changed files with 83 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue