diff --git a/src/app/line-map.coffee b/src/app/line-map.coffee index abff5c28c..33e76edf9 100644 --- a/src/app/line-map.coffee +++ b/src/app/line-map.coffee @@ -7,6 +7,8 @@ module.exports = class LineMap maxScreenLineLength: 0 + ### Internal ### + constructor: -> @screenLines = [] @@ -28,6 +30,8 @@ class LineMap for screenLine in maxLengthCandidates @maxScreenLineLength = Math.max(@maxScreenLineLength, screenLine.text.length) + ### Public ### + # Gets the line for the given screen row. # # screenRow - A {Number} indicating the screen row. @@ -185,7 +189,8 @@ class LineMap end = @bufferPositionForScreenPosition(screenRange.end) new Range(start, end) - # Internal: + ### Internal ### + logLines: (start=0, end=@screenLineCount() - 1)-> for row in [start..end] line = @lineForScreenRow(row).text