         placeholder = tabStops.processText(placeholder, tabstopOptions)
 
       if placeholder then "${#{group}:#{placeholder}}" else "$#{group}"
-      
+
     escape: (ch) ->
       if ch == '$' then '\\$' else ch
 

      @_setSelectedBufferRanges(@_selection.saved)

  _setSelectedBufferRanges: (sels) ->
    @editor.setSelectedBufferRanges(sels.filter (s) -> !!s)

  _saveSelection: (delta) ->
    @_selection.saved[@_selection.index] = @editor.getSelectedBufferRange()

    @editor = @editorView.getEditor()
    buf = @editor.getBuffer()
    bufRanges = @editor.getSelectedBufferRanges()
    @_selection =
      index: 0
      saved: new Array(bufRanges.length)
      bufferRanges: bufRanges
