     _.times @getCount(@defaultCount), ->
       fn()
 
-  isAt: (cursor, where) ->
+  at: (where, cursor) ->
     switch where
-      when 'BoL' then cursor.isAtBeginningOfLine()
-      when 'EoL' then cursor.isAtEndOfLine()
-      when 'EoF' then cursor.getEofBufferPosition().isEqual(@editor.getEofBufferPosition())
-      when 'BoF' then cursor.getEofBufferPosition().isEqual(Point.ZERO)
+      when 'BOL' then cursor.isAtBeginningOfLine()
+      when 'EOL' then cursor.isAtEndOfLine()
+      when 'BOF' then cursor.getBufferPosition().isEqual(Point.ZERO)
+      when 'EOF' then cursor.getBufferPosition().isEqual(@editor.getEofBufferPosition())
 
   getLastScreenRow: ->
     @editor.getLastScreenRow()


      # when the motion is combined with an operator, we will only wrap to the next line
      # if we are already at the end of the line (after the last character)
      if @isOperatorPending() and not cursor.isAtEndOfLine()
        wrapToNextLine = false

      cursor.moveRight() unless cursor.isAtEndOfLine()
      cursor.moveRight() if wrapToNextLine and cursor.isAtEndOfLine()

class MoveUp extends Motion
  @extend()

      else
        cursor.getBeginningOfNextWordBufferPosition(wordRegex: @wordRegex)

      return if @at('EOF', cursor)

      if @at('EOL', cursor)
        cursor.moveDown()
        cursor.moveToBeginningOfLine()
        cursor.skipLeadingWhitespace()
