mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Pass options in DisplayBuffer::screenRangeForBufferRange
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user