DCD icon indicating copy to clipboard operation
DCD copied to clipboard

Unicode in source seems to break completion

Open tofuninja opened this issue 3 years ago • 3 comments

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.

tofuninja avatar Jul 18 '21 15:07 tofuninja

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.

WebFreak001 avatar Jul 19 '21 06:07 WebFreak001

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..

tofuninja avatar Jul 22 '21 16:07 tofuninja

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.

WebFreak001 avatar Jul 22 '21 17:07 WebFreak001