mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Renderer.expandBufferRangeToLineEnds and Renderer.expandScreenRangeToLineEnds use Range.fromObject
This commit is contained in:
parent
54f7212ad8
commit
5e2e550217
@ -216,10 +216,12 @@ class Renderer
|
||||
@expandBufferRangeToLineEnds(bufferRange)))
|
||||
|
||||
expandScreenRangeToLineEnds: (screenRange) ->
|
||||
screenRange = Range.fromObject(screenRange)
|
||||
{ start, end } = screenRange
|
||||
new Range([start.row, 0], [end.row, @lineMap.lineForScreenRow(end.row).text.length])
|
||||
|
||||
expandBufferRangeToLineEnds: (bufferRange) ->
|
||||
bufferRange = Range.fromObject(bufferRange)
|
||||
{ start, end } = bufferRange
|
||||
new Range([start.row, 0], [end.row, Infinity])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user