   ]
 
   getRangeBy: (klass, selection) ->
-    @new(klass, {@inner}).getRange(selection, {@enclosed})
+    @new(klass, {@inner}).getRange(selection, @enclosed)
 
   getRanges: (selection) ->
     (range for klass in @member when (range = @getRangeBy(klass, selection)))

      when 'close'
        scanFunc = 'scanInBufferRange'
        scanRange = rangeToEndOfFileFromPoint(from)
    pairRegexp = pair.map(_.escapeRegExp).join('|')
    pattern = ///#{pairRegexp}///g

    found = null # We will search to fill this var.
    state = {open: [], close: []}

    @editor[scanFunc] pattern, scanRange, ({matchText, range, stop}) =>
      {start, end} = range
      return stop() if (not allowNextLine) and (from.row isnt start.row)
      return if @isEscapedCharAtPoint(start)

      pairState = @getPairState(pair, matchText, range)
      oppositeState = if pairState is 'open' then 'close' else 'open'
      if pairState is which
        openRange = state[oppositeState].pop()

    @editor.getTextInBufferRange(range) is escapeChar

  # options.enclosed is only used when which is 'close'
  findPair: (which, from, pattern) ->
    switch which
      when 'open'
        scanFunc = 'backwardsScanInBufferRange'
