         catch e then return false
         return true
 
-    fixPrefix: (prefix) ->
+    checkPrefix: (prefix) ->
         return '' if prefix.match(/(\s|;|\.|\"|\')$/) or prefix.replace(/\s/g, '').length is 0
         prefix
 

        @clearSuggestions()

    getMaxIndex: (length) ->
        Math.min(maxItems, length)

    addSelector: (selector) ->
        @selector = @selector + ',' + selector

        if !@isValidPrefix(prefix) and !@force
            @manager.documentation.hide()
            return []
        prefix = @checkPrefix(prefix)

        that = this

        return new Promise (resolve) ->
            that.manager.client.update(editor.getURI(), editor.getText()).then =>
                that.manager.client.completions(editor.getURI(), {line: bufferPosition.row, ch: bufferPosition.column}).then (data) =>
                    that.clearSuggestions()
