fix selectAll after anchor merge

This commit is contained in:
Fabian Jakobs 2011-02-11 15:43:34 +01:00
commit 0a3111c8fb
3 changed files with 15 additions and 9 deletions

View file

@ -160,8 +160,7 @@ var Selection = function(session) {
this.selectAll = function() {
var lastRow = this.doc.getLength() - 1;
this.setSelectionAnchor(lastRow, this.doc.getLine(lastRow).length);
this.setSelectionLead(0, 0);
// this._dispatchEvent("changeSelection", {blockScrolling: true});
this.moveCursorTo(0, 0);
};
this.setSelectionRange = function(range, reverse) {