Dan2552 / SublimeTextSwiftAutocomplete

Swift autocompletion in Sublime Text using SourceKitten
MIT License
155 stars 7 forks source link

Inserting unnecessary point after selecting suggestion #20

Closed dielsonsales closed 7 years ago

dielsonsales commented 7 years ago

When I select a specific suggestion, by pressing Enter, the text ends with two points, such as:

variable..method();

Is this an issue of sublime or is the project doing something it shouldn't?

Dan2552 commented 7 years ago

Probably the same issue as https://github.com/Dan2552/SourceKittenSubl/issues/19

I'm not entirely sure, but it's possibly to do with byte size vs length.

I did some quick testing but didn't find the solution today, if you want to have a bit of a play: https://github.com/Dan2552/SourceKittenSubl/commit/a0657decaab8e4cb27ca90dbd1dca11998122bbf

dielsonsales commented 7 years ago

Indeed it just happens when I have a © symbol in my comments. If I delete it, everything works normally as it should.

Dan2552 commented 7 years ago

Thanks for checking. I'll close this one to avoid duplicates.