 class SingleLineSearchCallbackArgument
   lineTextOffset: 0
 
-  Object.defineProperty SearchCallbackArgument.prototype, 'range',
+  Object.defineProperty SingleLineSearchCallbackArgument.prototype, 'range',
     get: ->
       @computedRange ?= Range(
         Point(@row, @lineOffset + @match.index),

class MultiLineSearchCallbackArgument
  lineTextOffset: 0

  Object.defineProperty SearchCallbackArgument.prototype, 'range',
    get: ->
      return @computedRange if @computedRange?


    set: (range) ->
      @computedRange = range

  Object.defineProperty SingleLineSearchCallbackArgument.prototype, 'lineText',
    get: -> @buffer.lineForRow(@range.start.row)

  constructor: (@buffer, @match, @lengthDelta) ->
