mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Use .findMarkers instead of .markersForBufferPosition in snippets
This commit is contained in:
@@ -8,7 +8,6 @@ class SnippetExpansion
|
||||
settingTabStop: false
|
||||
|
||||
constructor: (@snippet, @editSession) ->
|
||||
|
||||
@editSession.selectToBeginningOfWord()
|
||||
startPosition = @editSession.getCursorBufferPosition()
|
||||
@editSession.transact =>
|
||||
@@ -60,7 +59,7 @@ class SnippetExpansion
|
||||
markerSelected
|
||||
|
||||
tabStopsForBufferPosition: (bufferPosition) ->
|
||||
_.intersection(@tabStopMarkers, @editSession.markersForBufferPosition(bufferPosition))
|
||||
_.intersection(@tabStopMarkers, @editSession.findMarkers(containsBufferPosition: bufferPosition))
|
||||
|
||||
destroy: ->
|
||||
@unsubscribe()
|
||||
|
||||
Reference in New Issue
Block a user