Closed pfries closed 2 years ago
I've checked. It's weird... changing the dictionary I use may or may not reproduce the bug. If I stop using my own merge function and use table.sort, the performance is a little worse (I'm sure it won't bother you), but the bug doesn't seem to occur. I created a branch (remove-merge), try it.
Branch fixes the error. Not sure how important this fix is if there's a trade-off since, while testing your branch, I saw that /usr/share/dict/words
is ultimately just a symlink to /usr/share/dict/american-english
on my system.
I did try it again on master
with /usr/share/dict/british-english
as the second dictionary but still got the exception.
It may be possible to solve this problem without any trade-offs. I'm a little busy in the New Year, but I'll try it when I have time.
If it is not fixed, please reopen this.
When I define multiple dictionaries for ["*"]
then I get the following exception when triggering completion in a "text" filetype. Dictionary completion works for other filetypes (e.g., py, md).