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

class SingleLineSearchCallbackArgument
  lineTextOffset: 0

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

class MultiLineSearchCallbackArgument
  lineTextOffset: 0

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

