             cssClass : 'separator'
             partial  : '...'
 
-        view = @scrollView.wrapper.addSubView new KDCustomHTMLView
+        view = fileItem.addSubView new KDCustomHTMLView
           tagName  : 'pre'
           cssClass : 'line'
 

    { result, stats, searchText, isCaseSensitive, @machine } = options

    for fileName, lines of result
      @scrollView.wrapper.addSubView new KDCustomHTMLView
        partial  : "#{fileName}"
        cssClass : 'filename'

      previousLine = null



    { target } = event

    return  unless target.classList.contains 'match'

    @openFile target


  openFile: (target) ->

    path       = target.getAttribute 'data-file-path'
    lineNumber = target.getAttribute('data-line-number') or 0
    file       = FSHelper.createFileInstance { path, @machine }

    file.fetchContents (err, contents) ->
