Returns a list of completion candidates. This function takes two parameters:

  • Index of the word to complete, 0-based. If -1 is passed then list of all commands is returned.

  • A list of words already entered