Refactor FoldLine.getStringAt out of fold line as the FoldLine should not be session depending.
This commit is contained in:
parent
e9f3ba7b56
commit
9ff0df758a
2 changed files with 33 additions and 41 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue