   getCommandCompletions: ({editor, bufferPosition}, prefix) ->
     suggestions = []
     line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
+    spl = line.split(' ')
+    line = spl[spl.length - 1]  # Seperate at spaces
     line = line.match(wholeCommand)[0]
     prev = line.split('/')
     prev = prev[1..prev.length-2]

  getPrefix: (editor, bufferPosition) ->
    @resetMatches()
    line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
    if line.match(endOfCommand) != null
      @isCommand = true
      line.match(endOfCommand)[0].split('/')[1]
    else if line.match(unit) != null

          desc = thisLevel[value]['guidance']
          type = 'function'
          if desc == undefined
            type = 'class'
            desc = ''
        catch error
          desc = ''
          type = 'class'
