 
   getFilterText: (bookmark) ->
     segments = []
-    bookmarkRow = bookmark.getStartPosition().row
+    bookmarkRow = bookmark.marker.getStartPosition().row
     segments.push(bookmarkRow)
     if bufferPath = bookmark.buffer.getPath()
       segments.push(bufferPath)

class BookmarksView extends SelectList
  @viewClass: -> "#{super} bookmarks-view overlay from-top"

  filterKey: 'bookmarkFilterText'

  initialize: ->
    super

    segments.join(' ')

  getLineText: (bookmark) ->
    bookmark.buffer.lineForRow(bookmark.marker.getStartPosition().row)?.trim()

  populateBookmarks: ->
    bookmarks = []
    attributes = class: 'bookmark'
    for buffer in project.getBuffers()
      for marker in buffer.findMarkers(attributes)
        bookmark = {marker, buffer}
        bookmark.fitlerText = @getFilterText(bookmark)
        bookmarks.push(bookmark)
    @setArray(bookmarks)

  itemForElement: (bookmark) ->
    bookmarkRow = bookmark.marker.getStartPosition().row
    if filePath = bookmark.buffer.getPath()
      bookmarkLocation = "#{path.basename(filePath)}:#{bookmarkRow + 1}"
    else
