maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

Fixed offset calculation for Buffer completions; fixes #302 #306

Closed omgitsmoe closed 3 years ago

omgitsmoe commented 3 years ago

I don't have any experience with vim plugins, so this might be totally wrong. But it seems to fix the issue in #302. EDIT: Also seems to fix #305.

Completor class expects the offset value in the returned dictionaries to be in the number of bytes in the encoding of the current buffer, but Buffer.parse was returning the offset in number of codepoints/runes.

maralla commented 3 years ago

Thanks!