Refactor FoldLine.getStringAt out of fold line as the FoldLine should not be session depending.

This commit is contained in:
Julian Viereck 2011-04-25 13:42:58 +02:00
commit 9ff0df758a
2 changed files with 33 additions and 41 deletions

View file

@ -382,11 +382,7 @@ var Selection = function(session) {
return;
}
var str = null;
var foldLine = this.session.getFoldLine(row);
if (foldLine) {
str = foldLine.getStringAt(this.session, row, column, -1);
}
var str = this.session.getFoldStringAt(row, column, -1);
if (str == null) {
str = this.doc.getLine(row).substring(0, column)
}