   moveCursorDown: (cursor) ->
     unless @at('LastScreenRow', cursor)
       cursor.moveDown()
-
-  getEolBufferPosition: (cursor) ->
-    cursor.getCurrentLineBufferRange().end
 
   moveCursorRight: (cursor, allowWrap=false) ->
     {row, column} = cursor.getScreenPosition()

      options = {autoscroll: false, preserveFolds: true}
      selection.setBufferRange(newRange, options)

  moveCursorUp: (cursor) ->
    unless @at('FirstScreenRow', cursor)
      cursor.moveUp()

      wrapBeyondNewlines: allowWrap
      wrapAtSoftNewlines: true

  moveCursorLeft: (cursor, allowWrap=false) ->
    if not cursor.isAtBeginningOfLine() or allowWrap
      cursor.moveLeft()

  # Utils
  # -------------------------
  countTimes: (fn) ->
