     {row, column} = @editor.getCursorBufferPosition()
     @editor.setSelectedBufferRange(@selectRows(row, row+(count-1)))
 
-    _.map [1..count], (i) =>
+    _.times count, ->
       true
 
    # TODO: This is extracted from TextBuffer#deleteRows. Unfortunately

class MoveToEndOfWord extends Motion
  execute: (count=1) ->
    cursor = @editor.getCursor()
    _.map [1..count], =>
      cursor.setBufferPosition(@nextBufferPosition(exclusive: true))

  select: (count=1) ->
    cursor = @editor.getCursor()

    _.map [1..count], =>
      bufferPosition = @nextBufferPosition()
      screenPosition = @editor.screenPositionForBufferPosition(bufferPosition)
      @editor.selectToScreenPosition(screenPosition)


class MoveToNextParagraph extends Motion
  execute: (count=1) ->
    _.times count, =>
      @editor.setCursorScreenPosition(@nextPosition())

  select: (count=1) ->
    _.times count, =>
      @editor.selectToScreenPosition(@nextPosition())
      true

