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


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


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

  indentSubsequentLines: (startRow, snippet) ->
