rebased the branch, moved the moveText() from Document to EditSession, and removed the 'move' change event, which is no longer needed given the fixes in UndoManager.

This commit is contained in:
Mihai Sucan 2011-02-18 14:53:44 +02:00
commit 44846b4983
5 changed files with 44 additions and 71 deletions

View file

@ -271,9 +271,6 @@ var Editor =function(renderer, session) {
this.onDocumentChange = function(e) {
var delta = e.data;
if (delta.isMeta)
return;
var range = delta.range;
this.bgTokenizer.start(range.start.row);
@ -769,7 +766,7 @@ var Editor =function(renderer, session) {
if (this.$readOnly)
return null;
return this.session.doc.move(range, toPosition);
return this.session.moveText(range, toPosition);
};
this.copyLinesUp = function() {