Remove EditSession.getScreenFirstRowColumn() func and clean up a little bit
This commit is contained in:
parent
8c63cd7ff5
commit
145030972c
3 changed files with 2 additions and 22 deletions
|
|
@ -306,7 +306,7 @@ var Selection = function(session) {
|
|||
var row = this.selectionLead.row;
|
||||
var column = this.selectionLead.column;
|
||||
var screenRow = this.session.documentToScreenRow(row, column);
|
||||
var firstRowColumn = this.session.getScreenFirstRowColumn(screenRow);
|
||||
var firstRowColumn = this.session.screenToDocumentColumn(screenRow, 0)
|
||||
var beforeCursor = this.doc.getLine(row).slice(firstRowColumn, column);
|
||||
var leadingSpace = beforeCursor.match(/^\s*/);
|
||||
if (leadingSpace[0].length == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue