dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

Unicode in source seems to break completion #643

Open tofuninja opened 3 years ago

tofuninja commented 3 years ago

I have some code along the lines of "g.drawString("");" where  is a rocket ship in a custom font I am using. Auto completion before this line works as expected but auto completion after it does not work.

WebFreak001 commented 3 years ago

which editor are you using? I certainly know there is no issue when there is unicode in comments at least, so your editor could offset the cursor if it doesn't work on bytes.

tofuninja commented 3 years ago

im using sublime text, it might be the plugin im using(a heavily modified version of dkit). I am not sure if it uses byte offset or codepoint offset..

WebFreak001 commented 3 years ago

an easy way to test is going forward or backward one or two characters for every unicode character and seeing if the completion you would expect is there.

Using your code doesn't break completion for me.