 
   select: ->
     items = [{text: "Automatic"}]
-    items.push {text: "1 Space", length: 1}
-    items.push(({text: "#{n} Spaces", length: n} for n in [2, 3, 4, 6, 8])...)
+    items.push(({text: "#{n} Spaces", length: n} for n in @possibleIndentations)...)
     items.push {text: "Tabs"}
     s = selector.show items, ({text, length}={}) =>
       ed = atom.workspace.getActiveTextEditor()

selector = require './selector'

module.exports = GuessIndent =

  activate: (state) ->
    @manual = new Set()

      if @isblank l then continue
      if @iscomment [row, 0], ed then continue
      next = @indent l
      # only count differences in indentation
      if next == last then continue
      if next.startsWith last
        @count votes, @after next, last
      else if last.startsWith next
