 
   setTabStopIndex: (@tabStopIndex) ->
     @settingTabStop = true
-    @editor.setSelectedBufferRanges @tabStopMarkers[@tabStopIndex]
+    @editor.setSelectedBufferRanges(
+      @tabStopMarkers[@tabStopIndex].map (marker) =>
+        @editor.selectMarker(marker))
     @settingTabStop = false
     true
 

  placeTabStopMarkers: (startPosition, tabStopRanges) ->
    for ranges in tabStopRanges
      @tabStopMarkers.push ranges.map ({start, end}) =>
        [startPosition.add(start), startPosition.add(end)]
    @setTabStopIndex(0)

  indentSubsequentLines: (startRow, snippet) ->


  destroy: ->
    @unsubscribe()
    for markers in @tabStopMarkers
        marker.destroy() for marker in markers
    @tabStopMarkers.length = 0
    @editor.snippetExpansion = null

