Key line numbers by buffer row and soft-wrap count

…instead of an array. This will make things simpler to diff in the
view.
This commit is contained in:
Nathan Sobo
2015-01-27 06:07:21 -07:00
parent 182531a010
commit 20838accc1
3 changed files with 26 additions and 10 deletions

View File

@@ -717,6 +717,8 @@ class TextEditor extends Model
# {Delegates to: DisplayBuffer.bufferRowsForScreenRows}
bufferRowsForScreenRows: (startRow, endRow) -> @displayBuffer.bufferRowsForScreenRows(startRow, endRow)
screenRowForBufferRow: (row) -> @displayBuffer.screenRowForBufferRow(row)
# {Delegates to: DisplayBuffer.getMaxLineLength}
getMaxScreenLineLength: -> @displayBuffer.getMaxLineLength()