     set: (range) ->
       @computedRange = range
 
-  Object.defineProperty SingleLineSearchCallbackArgument.prototype, 'lineText',
+  Object.defineProperty this.prototype, 'lineText',
     get: -> @buffer.lineForRow(@range.start.row)
 
   constructor: (@buffer, @match, @lengthDelta) ->

class MultiLineSearchCallbackArgument
  lineTextOffset: 0

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



    set: (@computedRange) ->

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

  constructor: (@buffer, @row, @match, @lineOffset) ->
