Allow (start/end)(Buffer/Screen)Position in findMarker queries on layers

This commit is contained in:
Nathan Sobo
2015-11-04 16:17:57 -08:00
parent 533146bc6a
commit 3a4199a0cd

View File

@@ -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'