Open Galicarnax opened 4 weeks ago
I'm having the same problem when I have any accents in the line I'm accepting the suggestion, such as é
or ö
. I'm on Linux, the default encoding is utf-8
.
I confirm setting that line to utf-8 fixes it for me, but it would probably break for files with other encodings, and some platforms use other encodings by default. Maybe it would be better to check the buffer encoding?
When I type with Cyrillic alphabet, and getting suggestions, pressing the key binding to accept gives this error:
Looking into
lua/copilot/suggestion.lua
, I see this:If I change
utf-16
toutf-8
, everything seems to work fine. Any reason forutf-16
here?