Pass options in DisplayBuffer::screenRangeForBufferRange

This commit is contained in:
Nathan Sobo
2015-02-04 08:42:34 -07:00
parent 3e6669cf3e
commit 3656d4cca6

View File

@@ -617,10 +617,10 @@ class DisplayBuffer extends Model
# bufferRange - The {Range} to convert
#
# Returns a {Range}.
screenRangeForBufferRange: (bufferRange) ->
screenRangeForBufferRange: (bufferRange, options) ->
bufferRange = Range.fromObject(bufferRange)
start = @screenPositionForBufferPosition(bufferRange.start)
end = @screenPositionForBufferPosition(bufferRange.end)
start = @screenPositionForBufferPosition(bufferRange.start, options)
end = @screenPositionForBufferPosition(bufferRange.end, options)
new Range(start, end)
# Given a screen range, this converts it into a buffer position.