add selection.moveTo
This commit is contained in:
parent
4a80bd7b3d
commit
42a368ed02
11 changed files with 46 additions and 44 deletions
|
|
@ -281,13 +281,13 @@ var EditSession = function(text, mode) {
|
|||
**/
|
||||
this.setValue = function(text) {
|
||||
this.doc.setValue(text);
|
||||
this.selection.moveCursorTo(0, 0);
|
||||
this.selection.clearSelection();
|
||||
this.selection.moveTo(0, 0);
|
||||
|
||||
this.$resetRowCache(0);
|
||||
this.$deltas = [];
|
||||
this.$deltasDoc = [];
|
||||
this.$deltasFold = [];
|
||||
this.setUndoManager(this.$undoManager);
|
||||
this.getUndoManager().reset();
|
||||
};
|
||||
|
||||
|
|
@ -412,7 +412,7 @@ var EditSession = function(text, mode) {
|
|||
}
|
||||
self.mergeUndoDeltas = false;
|
||||
self.$deltas = [];
|
||||
}
|
||||
};
|
||||
this.$informUndoManager = lang.delayedCall(this.$syncInformUndoManager);
|
||||
}
|
||||
};
|
||||
|
|
@ -696,7 +696,7 @@ var EditSession = function(text, mode) {
|
|||
this.$searchHighlight = this.addDynamicMarker(highlight);
|
||||
}
|
||||
this.$searchHighlight.setRegexp(re);
|
||||
}
|
||||
};
|
||||
|
||||
// experimental
|
||||
this.highlightLines = function(startRow, endRow, clazz, inFront) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue