CodeMirror custom hint list not working properly

I am trying to hook on CodeMirror and plug my own list of words to appear into the autocompletion. Based on this link I tried to implement the following as you can see in this jsbin

The problem is that while my words do appear in the autocomplete, they are not filtered correctly. For example, I type “f”, and then I do ctrl+space. But I get all the 3 words in the popup with “mariano” selected. I would expect to have only “Florencia” available and selected.

Any ideas what I could be doing wrong?

ps: yes, I would love to not change anyword hint and provide my own that simply matches my own words, but I don’t know how to do that.

Thanks in advance!!

Your hinting function is expected to do the filtering, and indeed, if it doesn’t, no filtering is going to happen.

I have answered my own question here: http://stackoverflow.com/a/39422017/2892746