mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Allow (start/end)(Buffer/Screen)Position in findMarker queries on layers
This commit is contained in:
@@ -147,6 +147,16 @@ class TextEditorMarkerLayer
|
||||
bufferMarkerParams = {}
|
||||
for key, value of params
|
||||
switch key
|
||||
when 'startBufferPosition'
|
||||
key = 'startPosition'
|
||||
when 'endBufferPosition'
|
||||
key = 'endPosition'
|
||||
when 'startScreenPosition'
|
||||
key = 'startPosition'
|
||||
value = @displayBuffer.bufferPositionForScreenPosition(value)
|
||||
when 'endScreenPosition'
|
||||
key = 'endPosition'
|
||||
value = @displayBuffer.bufferPositionForScreenPosition(value)
|
||||
when 'startBufferRow'
|
||||
key = 'startRow'
|
||||
when 'endBufferRow'
|
||||
|
||||
Reference in New Issue
Block a user