   atom.config.get('git-plus.amountOfCommitsToShow')
 
 module.exports =
-class LogListView extends ScrollView
+class LogListView extends View
   @content: ->
     @div class: 'git-plus-log native-key-bindings', tabindex: -1, =>
       @table id: 'git-plus-commits', outlet: 'commitsListView'

    args.push @currentFile if @onlyCurrentFile and @currentFile?
    git.cmd(args, cwd: @repo.getWorkingDirectory())
    .then (data) => @parseData data

  getTitle: -> 'git-plus: Log'

  initialize: ->
    @skipCommits = 0
    @on 'click', '.commit-row', ({currentTarget}) =>
      @showCommitLog currentTarget.getAttribute('hash')
    @scroll =>
      @getLog() if @prop('scrollHeight') - @scrollTop() - @height() < 20

  attached: ->
    @commandSubscription = atom.commands.add @element,
      'core:move-down': => @selectNextResult()
      'core:move-up': => @selectPreviousResult()
      'core:page-up': => @selectPreviousResult(10)
      'core:page-down': => @selectNextResult(10)
      'core:move-to-top': =>
        @selectFirstResult()
      'core:move-to-bottom': =>
        @selectLastResult()
      'core:confirm': =>
        hash = @find('.selected').attr('hash')
        @showCommitLog hash if hash
        false

  detached: ->
    @commandSubscription.dispose()
    @commandSubscription = null

  parseData: (data) ->
    if data.length > 0
