package
This commit is contained in:
parent
e0c00a1840
commit
3d89cadb36
7 changed files with 31 additions and 10 deletions
|
|
@ -3198,6 +3198,7 @@ var EditSession = function(text, mode) {
|
|||
this.$rowCache = [];
|
||||
this.$wrapData = [];
|
||||
this.$foldData = [];
|
||||
this.$undoSelect = true;
|
||||
this.$foldData.toString = function() {
|
||||
var str = "";
|
||||
this.forEach(function(foldLine) {
|
||||
|
|
@ -3793,10 +3794,11 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.redoChanges = function(deltas, dontSelect) {
|
||||
if (!deltas.length)
|
||||
|
|
@ -3814,10 +3816,15 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.setUndoSelect = function(enable) {
|
||||
this.$undoSelect = enable;
|
||||
};
|
||||
|
||||
this.$getUndoSelection = function(deltas, isUndo, lastUndoRange) {
|
||||
function isInsert(delta) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
Ace
|
||||
version 0.2.0
|
||||
commit 6a9ef52fe8341a8b79e929a711984458d9025a8a
|
||||
commit e0c00a1840f81e605fbed3350bf4c59e6af9492c
|
||||
|
||||
|
||||
-->
|
||||
|
|
|
|||
|
|
@ -5371,6 +5371,7 @@ var EditSession = function(text, mode) {
|
|||
this.$rowCache = [];
|
||||
this.$wrapData = [];
|
||||
this.$foldData = [];
|
||||
this.$undoSelect = true;
|
||||
this.$foldData.toString = function() {
|
||||
var str = "";
|
||||
this.forEach(function(foldLine) {
|
||||
|
|
@ -5966,10 +5967,11 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.redoChanges = function(deltas, dontSelect) {
|
||||
if (!deltas.length)
|
||||
|
|
@ -5987,10 +5989,15 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.setUndoSelect = function(enable) {
|
||||
this.$undoSelect = enable;
|
||||
};
|
||||
|
||||
this.$getUndoSelection = function(deltas, isUndo, lastUndoRange) {
|
||||
function isInsert(delta) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5325,6 +5325,7 @@ var EditSession = function(text, mode) {
|
|||
this.$rowCache = [];
|
||||
this.$wrapData = [];
|
||||
this.$foldData = [];
|
||||
this.$undoSelect = true;
|
||||
this.$foldData.toString = function() {
|
||||
var str = "";
|
||||
this.forEach(function(foldLine) {
|
||||
|
|
@ -5920,10 +5921,11 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.redoChanges = function(deltas, dontSelect) {
|
||||
if (!deltas.length)
|
||||
|
|
@ -5941,10 +5943,15 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
this.$fromUndo = false;
|
||||
lastUndoRange &&
|
||||
this.$undoSelect &&
|
||||
!dontSelect &&
|
||||
this.selection.setSelectionRange(lastUndoRange);
|
||||
return lastUndoRange;
|
||||
},
|
||||
};
|
||||
|
||||
this.setUndoSelect = function(enable) {
|
||||
this.$undoSelect = enable;
|
||||
};
|
||||
|
||||
this.$getUndoSelection = function(deltas, isUndo, lastUndoRange) {
|
||||
function isInsert(delta) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue