     @editor.setSelectedBufferRanges(@selection)
     _.times(count, -> true)
 
+# Word
+# -------------------------
 class SelectInsideWord extends TextObject
   select: ->
     @editor.selectWordsContainingCursors()

{Range} = require 'atom'

AllWhitespace = /^\s$/
WholeWordRegex = /\S+/
_ = require 'underscore-plus'
Base = require './base'


class TextObject extends Base
  constructor: (@editor, @state) ->

        selection.selectRight()
      true

# WholeWord
# -------------------------
class SelectInsideWholeWord extends TextObject
  select: ->
    for selection in @editor.getSelections()
      range = selection.cursor.getCurrentWordBufferRange({wordRegex: WholeWordRegex})
      selection.setBufferRange(range)
      true

class SelectAWholeWord extends TextObject
  select: ->
    for selection in @editor.getSelections()
      range = selection.cursor.getCurrentWordBufferRange({wordRegex: WholeWordRegex})
      selection.setBufferRange(range)
      loop
        endPoint = selection.getBufferRange().end
        char = @editor.getTextInRange(Range.fromPointWithDelta(endPoint, 0, 1))
        break unless AllWhitespace.test(char)
        selection.selectRight()
      true

# SelectInsideQuotes and the next class defined (SelectInsideBrackets) are
# almost-but-not-quite-repeated code. They are different because of the depth
# checks in the bracket matcher.
class SelectInsideQuotes extends TextObject
  constructor: (@editor, @char, @includeQuotes) ->

