 
     { target } = event
 
-    return unless  target.classList.contains 'match'
+    return  unless target.classList.contains 'match'
+
+    @openFile target
+
+
+  openFile: (target) ->
 
     path       = target.getAttribute 'data-file-path'
-    lineNumber = target.getAttribute 'data-line-number'
+    lineNumber = target.getAttribute('data-line-number') or 0
     file       = FSHelper.createFileInstance { path, @machine }
 
     file.fetchContents (err, contents) ->

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

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

      previousLine = null


            cssClass : 'separator'
            partial  : '...'

        view = fileItem.addSubView new KDCustomHTMLView
          tagName  : 'pre'
          cssClass : 'line'

