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


class MoveLeft extends Motion
  @extend()
  isMovable: (cursor) ->
    not @at('BOL', cursor) or settings.get('wrapLeftRightMotion')

  moveCursor: (cursor) ->
    @countTimes =>
      if @isMovable(cursor)
        @unfoldAtCursorRow(cursor)
        cursor.moveLeft()

class MoveRight extends Motion
  @extend()

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

  getEolBufferPosition: (cursor) ->
    cursor.getCurrentLineBufferRange().end

  # Cursor motion wrapper
  # -------------------------
  moveCursorUp: (cursor) ->
    unless @at('FirstScreenRow', cursor)
      cursor.moveUp()
