 
     selection = @editor.getSelection()
     prefix = @prefixOfSelection selection
+
+    # Stop completion if the word was already confirmed
+    return if prefix is @lastConfirmedWord
 
     # No prefix? Don't autocomplete!
     return unless prefix.length

  ###
  confirmed: (match) ->
    @editor.getSelection().clear()

    @cancel()
    return unless match
    @replaceTextWithMatch match
    position = @editor.getCursorBufferPosition()
    @editor.setCursorBufferPosition([position.row, position.column])

  originalCursorPosition: null
  aboveCursor: false
  debug: false
  lastConfirmedWord: null

  initialize: (@editorView) ->
    super
